-
Notifications
You must be signed in to change notification settings - Fork 114
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
2.4.0-beta with v-model support #43
Comments
Works well for me, bot TA and HTML versions! |
works fine here |
Seems to work fine! |
This works for saving data, but it doesn't seem to re-load correctly. Step 1: Create the item -- say a Can anyone else confirm? |
Discovered the problem. Apparently the |
@humblecoder |
@fritx If I'm understanding you correctly, it is. However, I had it set up as part of an object:
It works just fine when it comes to setting |
@humblecoder you should better declare properties in
|
Anyway, it's not bad to make it clear as possible in documentation and anywhere. 👍 |
@fritx I certainly take your point of being clear. But, to be fair
Also, that was outdated documentation. 😜 And to specifically require a name of |
@humblecoder it's not required to have a data named "html". It's just a demo, where we have a data named "html" and pass it to the If we have multiple inputs, for example, the code would be like this: <at v-model="html1">
<div contenteditable></div>
</at>
<at v-model="html2">
<div contenteditable></div>
</at>
<at v-model="text1">
<textarea></textarea>
</at>
<script>
// ...
data () {
return {
html1: 'foo',
html2: 'bar',
text1: 'yay'
}
}
</script> |
Related issues and comments: #8 (comment), #22 (comment), #26, #29, #32 (comment), #41 (comment)
Related PR: #38
README: https://github.com/fritx/vue-at#using-v-model-recommended
Online demos: http://fritx.github.io/vue-at/#/en/vmodel
Thank you all, @KuiShang, @pingshunhuangalex, @Yuzhongbing, @youyi1314, @iadambrown, @rap2hpoutre, @Brimstedt
The text was updated successfully, but these errors were encountered: