20 lines
448 B
JavaScript
20 lines
448 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
import './style.scss';
|
|
|
|
class Controller extends Section {
|
|
$onInit() {
|
|
this.$.params = {};
|
|
}
|
|
|
|
onSubmit() {
|
|
this.$http.get(`Zones/getEvents`, {params: this.$.params})
|
|
.then(res => this.$.data = res.data);
|
|
}
|
|
}
|
|
|
|
ngModule.component('vnZoneDeliveryDays', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|