25 lines
535 B
JavaScript
25 lines
535 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
class Controller extends Section {
|
|
constructor($element, $) {
|
|
super($element, $);
|
|
this.filter = {
|
|
include: {
|
|
relation: 'item',
|
|
scope: {
|
|
field: ['name', 'image']
|
|
}
|
|
}
|
|
};
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnTicketPicture', {
|
|
template: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
ticket: '<'
|
|
}
|
|
});
|