salix/modules/client/front/mandate/index.js

30 lines
698 B
JavaScript

import ngModule from '../module';
class Controller {
constructor($stateParams) {
this.$stateParams = $stateParams;
this.filter = {
include: [
{
relation: 'mandateType',
scope: {
fields: ['id', 'name']
}
}, {
relation: 'company',
scope: {
fields: ['id', 'code']
}
}
]
};
}
}
Controller.$inject = ['$stateParams'];
ngModule.component('vnClientMandate', {
template: require('./index.html'),
controller: Controller
});