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');
|
var schedulerTmpl = require('./scheduler.html');
|
||||||
|
|
||||||
import { ScheduleController } from './schedule.controller';
|
import { ScheduleComponent } from './schedule.component';
|
||||||
import { ScheduleService } from './schedule.service';
|
import { ScheduleService } from './schedule.service';
|
||||||
|
|
||||||
export default angular.module('accountant.scheduler', [
|
export default angular.module('accountant.scheduler', [
|
||||||
@ -56,7 +56,7 @@ export default angular.module('accountant.scheduler', [
|
|||||||
accountId: '<'
|
accountId: '<'
|
||||||
},
|
},
|
||||||
templateUrl: schedulerTmpl,
|
templateUrl: schedulerTmpl,
|
||||||
controller: ScheduleController,
|
controller: ScheduleComponent,
|
||||||
controllerAs: 'schedulerCtrl'
|
controllerAs: 'schedulerCtrl'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ import { Schedule } from './schedule';
|
|||||||
var scheduleFormTmpl = require('./schedule.form.tmpl.html'),
|
var scheduleFormTmpl = require('./schedule.form.tmpl.html'),
|
||||||
scheduleDeleteTmpl = require('./schedule.delete.tmpl.html');
|
scheduleDeleteTmpl = require('./schedule.delete.tmpl.html');
|
||||||
|
|
||||||
export class ScheduleController{
|
export class ScheduleComponent {
|
||||||
accountId: number;
|
accountId: number;
|
||||||
operations = [];
|
operations = [];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user