2018-11-13 06:44:03 +00:00
|
|
|
import ngModule from '../module';
|
|
|
|
|
|
|
|
export default class Controller {
|
2020-03-16 17:08:44 +00:00
|
|
|
constructor($) {
|
|
|
|
this.$ = $;
|
2018-11-13 06:44:03 +00:00
|
|
|
}
|
2019-10-24 10:49:18 +00:00
|
|
|
|
|
|
|
preview(event, travel) {
|
|
|
|
this.travelSelected = travel;
|
|
|
|
this.$.summary.show();
|
|
|
|
event.preventDefault();
|
|
|
|
event.stopImmediatePropagation();
|
|
|
|
}
|
2018-11-13 06:44:03 +00:00
|
|
|
}
|
|
|
|
Controller.$inject = ['$scope'];
|
|
|
|
|
|
|
|
ngModule.component('vnTravelIndex', {
|
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller
|
|
|
|
});
|