diff --git a/README.md b/README.md index 78fe94e..0c630cf 100644 --- a/README.md +++ b/README.md @@ -48,31 +48,35 @@ An installed web app cannot access `WKWebView.allowsBackForwardNavigationGesture ## Minimal integration ```ts -import { createApp } from 'vue' -import { createRouter, createWebHistory } from 'vue-router' -import { createNativeRouter } from '@native-vue-router/core' +import { createApp } from "vue"; +import { createRouter, createWebHistory } from "vue-router"; +import { createNativeRouter } from "@native-vue-router/core"; const router = createRouter({ history: createWebHistory(), routes: [ - { path: '/', component: Home }, + { path: "/", component: Home }, { - path: '/chat/:id', + path: "/chat/:id", component: Chat, meta: { - native: { presentation: 'push', parent: '/', gesture: 'edge' }, + native: { presentation: "push", parent: "/", gesture: "edge" }, }, }, ], -}) +}); -const nativeRouter = createNativeRouter({ router }) -createApp(App).use(router).use(nativeRouter).mount('#app') +const nativeRouter = createNativeRouter({ router }); +createApp(App).use(router).use(nativeRouter).mount("#app"); ``` ```vue