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

37 lines
899 B
JavaScript

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