UNPKG

consumerportal

Version:

mydna Custimised for you

52 lines (34 loc) 908 B
/// <reference path="../../../includes.ts" /> module app { class Controller { public static $inject = [ '$scope', ]; constructor( private $scope: angular.IScope, ) { } public $onInit = () => { }; video() { } } class Exercise { public bindings: any = { workout: '<' }; public template: string = ` <div class="sportsExercise"> <div class="title">{{vm.workout.title}}</div> <div class="image"></div> </div> `; public controller: any = Controller; public controllerAs: string = 'vm'; constructor() { } } angular .module('app') .component('sportsDiaryExercise', new Exercise()); }