29 lines
628 B
JavaScript
29 lines
628 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('vnTravelThermograph', {
|
||
|
template: require('./index.html'),
|
||
|
controller: Controller,
|
||
|
require: {
|
||
|
card: '^vnTravelCard'
|
||
|
},
|
||
|
bindings: {
|
||
|
travel: '<'
|
||
|
}
|
||
|
});
|