30 lines
698 B
JavaScript
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
|
|
});
|