Rename controller to component.
This commit is contained in:
parent
c4c10f9ab7
commit
40bc4bf1e8
@ -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'
|
||||
})
|
||||
|
||||
|
@ -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 = [];
|
||||
|
Loading…
Reference in New Issue
Block a user