import ngModule from '../module'; import Section from 'salix/components/section'; class Controller extends Section { $onInit() { this.$http.post(`Vehicles/sorted`, {warehouseFk: this.vnConfig.warehouseFk}) .then(res => { this.vehicles = res.data; }); } onSubmit() { this.$.watcher.submit().then(() => this.card.reload() ); } } ngModule.vnComponent('vnRouteBasicData', { template: require('./index.html'), controller: Controller, bindings: { route: '<' }, require: { card: '^vnRouteCard' } });