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, require: { catalog: '^vnZoneDeliveryDay' }, bindings: { zone: '<' } });