25 lines
547 B
JavaScript
25 lines
547 B
JavaScript
import ngModule from '../../module';
|
|
|
|
class Controller {
|
|
constructor($stateParams) {
|
|
this.$stateParams = $stateParams;
|
|
this.filter = {
|
|
include: [
|
|
{
|
|
relation: 'worker',
|
|
scope: {
|
|
fields: ['firstName', 'name']
|
|
}
|
|
}
|
|
]
|
|
};
|
|
}
|
|
}
|
|
|
|
Controller.$inject = ['$stateParams'];
|
|
|
|
ngModule.component('vnClientCreditIndex', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|