You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 3, 2018. It is now read-only.
Hi.
I try bind (in other word attahced) vue vm object with rendered from server.
And I can't this with v-text directive, but v-text override value.
<divid="bar" ><divv-text="baz" v-on="click:changeBaz">
Some text Baz
</div></div><script>varuseText=newVue({el : "#bar"})console.log(useText.baz)// output undefined. This is NOT my wanted behavor</script>
Secondly, I found solution thatn use v-model.
But in document, I may should not use v-model with div.
<divid="foo" ><divv-model="baz" v-on="click:changeBaz">
Some text Foo
</div></div><script>varuseModel=newVue({el : "#foo"})console.log(useModel.baz.trim()=="Some text Foo")// true. This is my wanted behavor</script>