Replies: 1 comment 1 reply
-
As far as I know, all data except <div id="app" v-scope="{name: 'Tom'}" v-collect></div>
<script type="module">
import { createApp } from '../src'
const ctxMap = new WeakMap()
const collectCtx = dirCtx => {
ctxMap.set(dirCtx.el, dirCtx.ctx)
}
createApp()
.directive('collect', collectCtx)
.mount('#app')
</script> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any method that can put data to petite outside components? Like in vue
var vm = new Vue({...}); console.log(vm.$data.name);
?Beta Was this translation helpful? Give feedback.
All reactions