22 lines
484 B
JavaScript
22 lines
484 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
class Controller extends Section {
|
|
constructor($element, $) {
|
|
super($element, $);
|
|
}
|
|
|
|
async $onInit() {
|
|
const url = await this.vnApp.getUrl(`ticket/${this.$params.id}/boxing`);
|
|
window.open(url).focus();
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnTicketBoxing', {
|
|
template: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
ticket: '<'
|
|
}
|
|
});
|