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',
2018-07-31 09:08:22 +00:00
scope: {
fields: ['code', 'description']
2018-07-31 09:08:22 +00:00
}
},
{
relation: 'worker',
2018-07-31 09:08:22 +00:00
scope: {
fields: ['firstName', 'name']
2018-07-31 09:08:22 +00:00
}
},
{
relation: 'company',
2018-07-31 09:08:22 +00:00
scope: {
fields: ['code']
2018-07-31 09:08:22 +00:00
}
}
]
};
}
}
Controller.$inject = ['$stateParams'];
ngModule.component('vnClientSampleIndex', {
template: require('./index.html'),
controller: Controller
});