salix/modules/travel/front/descriptor/index.js

25 lines
562 B
JavaScript

import ngModule from '../module';
class Controller {
constructor($, $http, vnApp, $translate, aclService) {
this.$http = $http;
this.vnApp = vnApp;
this.$translate = $translate;
this.$ = $;
this.aclService = aclService;
}
}
Controller.$inject = ['$scope', '$http', 'vnApp', '$translate', 'aclService'];
ngModule.component('vnTravelDescriptor', {
template: require('./index.html'),
bindings: {
travel: '<'
},
require: {
card: '^vnTravelCard'
},
controller: Controller
});