How to use the vue-property-decorator.Vue.use function in vue-property-decorator

To help you get started, we’ve selected a few vue-property-decorator 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 CKGrafico / inversify-props / examples / vue / src / app / app.router.ts View on Github external
import VueRouter from 'vue-router';
import { Vue } from 'vue-property-decorator';

Vue.use(VueRouter);

export function router() {
    return new VueRouter({
        mode: 'history',
        routes: [
            {
              path: '/',
              component: () => import('./Cities.vue'),
            }
        ]
    });
}
github CKGrafico / Frontend-Boilerplates / src / app / app.router.ts View on Github external
import VueRouter from 'vue-router';
import { Vue } from 'vue-property-decorator';
import { citiesModule } from './cities';
import { weatherModule } from './weather';

Vue.use(VueRouter);

export function router() {
    return new VueRouter({
        mode: 'history',
        routes: [
            {
                path: '/',
                redirect: '/weather',
            },
            ...citiesModule.routes(),
            ...weatherModule.routes()
        ]
    });
}
github CKGrafico / Frontend-Boilerplates / __old / src / app / app.ts View on Github external
constructor() {
        containerBuilder();

        Vue.use(new Filters());
        vendor.forEach(library => Vue.use(library));

        this.bootstrap();
    }