2018-12-04 12:18:27 +00:00
|
|
|
import ngModule from '../module';
|
2018-09-24 12:51:27 +00:00
|
|
|
|
|
|
|
class Controller {
|
|
|
|
constructor($scope) {
|
|
|
|
this.$scope = $scope;
|
2018-11-12 10:31:58 +00:00
|
|
|
this.defaultDate = new Date();
|
|
|
|
this.defaultNexDate = new Date(this.defaultDate);
|
|
|
|
this.defaultNexDate.setMonth(this.defaultNexDate.getMonth() + 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
onSelection(value) {
|
|
|
|
console.log(value);
|
2018-09-24 12:51:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Controller.$inject = ['$scope'];
|
|
|
|
|
|
|
|
ngModule.component('vnZoneCalendar', {
|
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller,
|
|
|
|
bindings: {
|
|
|
|
zone: '<'
|
|
|
|
}
|
|
|
|
});
|