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:
commit
49b0cf0dd5
1 changed files with 2 additions and 2 deletions
|
|
@ -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' {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue