import ngModule from '../module'; import Section from 'salix/components/section'; export default class Controller extends Section { constructor($element, $) { super($element, $); this.filter = { fields: ['id', 'smsFk'], include: { relation: 'sms', scope: { fields: [ 'senderFk', 'sender', 'destination', 'message', 'statusCode', 'status', 'created'], include: { relation: 'sender', scope: { fields: ['name'] } } } } }; } } ngModule.vnComponent('vnClientSms', { template: require('./index.html'), controller: Controller, bindings: { client: '<' } });