salix/modules/travel/front/index/index.js

23 lines
486 B
JavaScript
Raw Normal View History

2018-11-13 06:44:03 +00:00
import ngModule from '../module';
export default class Controller {
constructor($scope) {
2019-10-24 10:49:18 +00:00
this.$ = $scope;
2018-11-13 06:44:03 +00:00
this.ticketSelected = null;
}
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
});