1
0
Fork 0
mirror of https://github.com/archtechx/airwire.git synced 2025-12-12 02:34:04 +00:00

Merge branch 'master' of github.com:archtechx/airwire

This commit is contained in:
Samuel Štancl 2021-05-21 18:46:09 +02:00
commit 49b0cf0dd5

View file

@ -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: 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 ```ts
require('./airwire'); import Airwire from './airwire';
import { createApp, reactive } from 'vue'; import { createApp, reactive } from 'vue';
createApp(require('./components/Main.vue').default) createApp(require('./components/Main.vue').default)
.use(window.Airwire.plugin('vue')(reactive)) .use(Airwire.plugin('vue')(reactive))
.mount('#app') .mount('#app')
declare module 'vue' { declare module 'vue' {