Rename controller to component.

This commit is contained in:
Alexis Lahouze 2017-07-23 07:44:03 +02:00
parent c4c10f9ab7
commit 40bc4bf1e8
2 changed files with 3 additions and 3 deletions

View File

@ -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'
})

View File

@ -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 = [];