21 lines
439 B
JavaScript
21 lines
439 B
JavaScript
import ngModule from '../module';
|
|
|
|
export default class Controller {
|
|
constructor($) {
|
|
this.$ = $;
|
|
}
|
|
|
|
preview(event, travel) {
|
|
this.travelSelected = travel;
|
|
this.$.summary.show();
|
|
event.preventDefault();
|
|
event.stopImmediatePropagation();
|
|
}
|
|
}
|
|
Controller.$inject = ['$scope'];
|
|
|
|
ngModule.component('vnTravelIndex', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|