diff --git a/src/scheduler/index.ts b/src/scheduler/index.ts index d22c23a..4dc53ed 100644 --- a/src/scheduler/index.ts +++ b/src/scheduler/index.ts @@ -35,7 +35,7 @@ var ngMessages = require('angular-messages'), var schedulerTmpl = require('./scheduler.html'); -import { ScheduleController } from './schedule.controller'; +import { ScheduleComponent } from './schedule.component'; import { ScheduleService } from './schedule.service'; export default angular.module('accountant.scheduler', [ @@ -56,7 +56,7 @@ export default angular.module('accountant.scheduler', [ accountId: '<' }, templateUrl: schedulerTmpl, - controller: ScheduleController, + controller: ScheduleComponent, controllerAs: 'schedulerCtrl' }) diff --git a/src/scheduler/schedule.controller.ts b/src/scheduler/schedule.component.ts similarity index 99% rename from src/scheduler/schedule.controller.ts rename to src/scheduler/schedule.component.ts index 9e83e5a..5a8b3b6 100644 --- a/src/scheduler/schedule.controller.ts +++ b/src/scheduler/schedule.component.ts @@ -10,7 +10,7 @@ import { Schedule } from './schedule'; var scheduleFormTmpl = require('./schedule.form.tmpl.html'), scheduleDeleteTmpl = require('./schedule.delete.tmpl.html'); -export class ScheduleController{ +export class ScheduleComponent { accountId: number; operations = [];