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

37 lines
899 B
JavaScript
Raw Normal View History

2018-07-31 09:08:22 +00:00
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
});