29 lines
636 B
JavaScript
29 lines
636 B
JavaScript
import ngModule from '../../module';
|
|
import './style.scss';
|
|
import Component from 'core/lib/component';
|
|
|
|
class Controller extends Component {
|
|
constructor($element, $) {
|
|
super($element, $);
|
|
this.filter = {
|
|
include:
|
|
{relation: 'warehouse',
|
|
scope: {
|
|
fields: ['id', 'name']
|
|
}
|
|
}
|
|
};
|
|
}
|
|
}
|
|
|
|
ngModule.component('vnTravelThermographIndex', {
|
|
template: require('./index.html'),
|
|
controller: Controller,
|
|
require: {
|
|
card: '^vnTravelCard'
|
|
},
|
|
bindings: {
|
|
travel: '<'
|
|
}
|
|
});
|