From 40bc4bf1e8a3e82cdfcd272c4ed06a7da050320d Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 23 Jul 2017 07:44:03 +0200 Subject: [PATCH] Rename controller to component. --- src/scheduler/index.ts | 4 ++-- .../{schedule.controller.ts => schedule.component.ts} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/scheduler/{schedule.controller.ts => schedule.component.ts} (99%) 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 = [];