nativescript-vue-router-extended
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "nativescript-vue-router-extended", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "NativeScript Vue Router Extended for NativeScript Vue hybrid Apps.", | ||
@@ -5,0 +5,0 @@ "main": "vue-router", |
import { RouterService } from "./router-service"; | ||
import { NSVueRouterOptions, RouterServiceOptions } from "./typings/router-service"; | ||
export declare const createRouter: (vueRouterOptions: NSVueRouterOptions, routerOptions: RouterServiceOptions) => RouterService; | ||
export declare const createRouter: (vueRouterOptions: NSVueRouterOptions, routerOptions?: RouterServiceOptions) => RouterService; | ||
declare const _default: { | ||
createRouter: (vueRouterOptions: NSVueRouterOptions, routerOptions: RouterServiceOptions) => RouterService; | ||
createRouter: (vueRouterOptions: NSVueRouterOptions, routerOptions?: RouterServiceOptions) => RouterService; | ||
}; | ||
export default _default; |
@@ -6,3 +6,3 @@ import Vue from "nativescript-vue"; | ||
import routerMixin from "./router-mixin"; | ||
export const createRouter = (vueRouterOptions, routerOptions) => { | ||
export const createRouter = (vueRouterOptions, routerOptions = {}) => { | ||
const vm = routerOptions.vm || Vue.prototype; | ||
@@ -9,0 +9,0 @@ const router = new RouterService(vueRouterOptions, Object.assign({ frame: Frame, vm }, routerOptions)); |
62369