salix/modules/agency/front/calendar/index.js

25 lines
534 B
JavaScript

import ngModule from '../module';
class Controller {
constructor($scope) {
this.$scope = $scope;
this.defaultDate = new Date();
this.defaultNexDate = new Date(this.defaultDate);
this.defaultNexDate.setMonth(this.defaultNexDate.getMonth() + 1);
}
onSelection(value) {
console.log(value);
}
}
Controller.$inject = ['$scope'];
ngModule.component('vnZoneCalendar', {
template: require('./index.html'),
controller: Controller,
bindings: {
zone: '<'
}
});