diff --git a/src/scheduler/index.ts b/src/scheduler/index.ts index f70731d..66b30b4 100644 --- a/src/scheduler/index.ts +++ b/src/scheduler/index.ts @@ -20,6 +20,15 @@ var angular = require('angular'); +import { + downgradeInjectable, + downgradeComponent +} from '@angular/upgrade/static'; + +import { Logger } from '@nsalaun/ng-logger'; +import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; +import { ToastrService } from 'ngx-toastr'; + var ngMessages = require('angular-messages'), ngUiNotification = require('angular-ui-notification'), ngStrap = require('angular-strap'); @@ -32,6 +41,11 @@ export default angular.module('accountant.scheduler', [ ngUiNotification, ngStrap ]) + .factory('toastrService', downgradeInjectable(ToastrService)) + + .factory('ngbModal', downgradeInjectable(NgbModal)) + + .factory('logger', downgradeInjectable(Logger)) .factory('ScheduledOperation', ScheduleFactory)