Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue can't be nested #8

Open
piever opened this issue May 15, 2018 · 0 comments
Open

vue can't be nested #8

piever opened this issue May 15, 2018 · 0 comments

Comments

@piever
Copy link

piever commented May 15, 2018

The following works:

using Blink, WebIO, Vue
s = Observable("")
ui = vue(dom"input[v-model=value]"(), ["value" => s])
using Blink
w = Window()
body!(w, ui)

and s gets updated correctly as I type. However if I put it into another vue:

template = dom"div"(ui)
ui2 = vue(template, ["test" => Observable("")])
body!(w, ui2)

the observable s does not get updated and in the Blink console I get the error (at vue.js:584):

[Vue warn]: Property or method "value" is not defined on the instance but referenced
during render. Make sure that this property is active either in the data option, or for
class-based components, by initializing the property. See
https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

(found in <Root>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant