How to use the vue-router.install function in vue-router

To help you get started, we’ve selected a few vue-router examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ModusCreateOrg / ionic-vue / src / router.ts View on Github external
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);
};
github ionic-team / ionic / vue / src / router.ts View on Github external
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);
};
github ModusCreateOrg / ionic-vue / dist / ion-router-vue.esm.js View on Github external
Router.install = function (Vue) {
    if (Router.install.installed) { return }
    Router.install.installed = true;
    VueRouter.install(Vue);
    Vue.component('IonRouterVue', IonRouterVue);
};