Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Router.install = (Vue) => {
// If already installed - skip
if (Router.installed) {
return;
}
Router.installed = true;
// Install the official VueRouter
VueRouter.install(Vue);
// Register the IonVueRouter component globally
Vue.component('IonVueRouter', IonVueRouter);
};
Router.install = (Vue) => {
// If already installed - skip
if (Router.installed) {
return;
}
Router.installed = true;
// Install the official VueRouter
VueRouter.install(Vue);
// Register the IonVueRouter component globally
Vue.component('IonVueRouter', IonVueRouter);
};
Router.install = function (Vue) {
if (Router.install.installed) { return }
Router.install.installed = true;
VueRouter.install(Vue);
Vue.component('IonRouterVue', IonRouterVue);
};