From 06244ae0fde7fad3252fa3f46ebe9ff3b83c24e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 21 May 2021 02:03:17 +0200 Subject: [PATCH] simplify example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ffaa9b7..c00fd4d 100644 --- a/README.md +++ b/README.md @@ -412,12 +412,12 @@ As mentioned above, you can integrate Airwire with Vue using a single line of co If you'd also like a `this.$airwire` helper (to avoid having to use `window.Airwire`), you can use our Vue plugin. Here's how an example `app.ts` might look like: ```ts -require('./airwire'); +import Airwire from './airwire'; import { createApp, reactive } from 'vue'; createApp(require('./components/Main.vue').default) - .use(window.Airwire.plugin('vue')(reactive)) + .use(Airwire.plugin('vue')(reactive)) .mount('#app') declare module 'vue' {