We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$value
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
the code:
<div id="test"></div> <script type="x-template" id="tpl"> <div v-repeat="obj"> <label>{{$key}}: {{$value}}</label> <input type="text" v-model="$value"/> </div> <button v-on="click: onTest">alert(foo)</button> </script> <script> new Vue({ template: '#tpl', el: '#test', data: { obj: { foo: 'test' } }, methods: { onTest: function(){ console.log(this.obj.foo); // nothing changed, why? } } }); </script>
jsbin: http://jsbin.com/gubadejonu/1/
The text was updated successfully, but these errors were encountered:
sync v-repeat $value back to original object/array (fix #761)
e8c36e1
good job!
Sorry, something went wrong.
No branches or pull requests
the code:
jsbin: http://jsbin.com/gubadejonu/1/
The text was updated successfully, but these errors were encountered: