2019-09-25 18:06:42 +00:00
|
|
|
import ngModule from '../module';
|
|
|
|
import './style.scss';
|
|
|
|
|
|
|
|
class Controller {
|
|
|
|
constructor($, $http) {
|
|
|
|
Object.assign(this, {
|
|
|
|
$,
|
|
|
|
$http
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
onSubmit() {
|
2019-10-24 22:53:53 +00:00
|
|
|
this.$http.get(`Zones/getEvents`, {params: this.params})
|
2019-10-23 15:38:35 +00:00
|
|
|
.then(res => this.$.data = res.data);
|
2019-09-25 18:06:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
Controller.$inject = ['$scope', '$http'];
|
|
|
|
|
|
|
|
ngModule.component('vnZoneDeliveryDays', {
|
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller
|
|
|
|
});
|