install

{ install(Vue, injector){} }

The component is built using an extended Vue (i.e. with Vue.extend()) and an isolated inject (i.e. injector.spawn()). The install method allows you to configure them both before creating the component.

vuenit.component(myComponent, {
  install(Vue, injector){
    Vue.use(somePlugin);
    injector.service('myService', /*...*/);
  }
});

results matching ""

    No results matching ""