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

27 lines
644 B
JavaScript

import ngModule from '../../module';
import Section from 'salix/components/section';
class Controller extends Section {
constructor($element, $) {
super($element, $);
this.filter = {
include: [
{
relation: 'greugeType',
scope: {
fields: ['id', 'name']
}
}
],
order: 'shipped DESC, amount'
};
}
}
Controller.$inject = ['$element', '$scope'];
ngModule.vnComponent('vnClientGreugeIndex', {
template: require('./index.html'),
controller: Controller
});