import createHub from 'vue3-hub';
const hub = createHub( {
data: {
bar: 'your data'
},
computed: {
foo() { return this.bar + 'ready' }
},
created() {
this.bar += ' is '
},
methods: {
hello() {
console.log(this.foo)
}
}
})
hub.hello()
// hub is reactive, and can be used in <template>.
export default hub
This package has been deprecated
Author message:
renamed to `vue-hubs`
vue3-hub
1.0.3 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i vue3-hub
Weekly Downloads
5
Version
1.0.3
License
MIT
Unpacked Size
1.56 kB
Total Files
4