Upgrade Schedule component to Angular4.

This commit is contained in:
Alexis Lahouze
2017-07-25 12:03:42 +02:00
parent 2166def0f1
commit e8247e30ab
3 changed files with 84 additions and 118 deletions

View File

@ -62,15 +62,9 @@ export default angular.module('accountant.scheduler', [
.factory('scheduleService', downgradeInjectable(ScheduleService))
.component('scheduleComponent', {
bindings: {
accountId: '<',
$modal: '<'
},
templateUrl: schedulerTmpl,
controller: ScheduleComponent,
controllerAs: 'schedulerCtrl'
})
.directive('scheduleComponent', downgradeComponent({
component: ScheduleComponent
}))
.run(function($transitions, accountIdService) {
$transitions.onSuccess({}, (transition) => {