-
-
Notifications
You must be signed in to change notification settings - Fork 335
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
$bindAsArray don't update binded data dynamically #19
Comments
Ok. solve this with
|
I'm having the same issue. Tried |
The reason was on Vue side of See PR: 5d5fe2a |
I am having a similar issue. The following code fails to display a JSON representation of <div id="app">{{ foo | json }}</div> new Vue({
el: '#app',
ready() {
this.$bindAsArray('foo', db.ref('foo').orderByChild('bar').equalTo('baz');
}
}) Is this thought to be caused by the same error? Edit: Here's the prettiest temporary solution I've been able to find: new Vue({
el: '#app',
ready() {
this.$bindAsArray('_foo', db.ref('foo').orderByChild('bar').equalTo('baz');
this.foo = this._foo;
},
data() {
return {
foo: null
}
}
}); |
I'm trying to bind a child node dynamically after the event changes.
and I expect to receive data at the output on binded array like this:
<pre>{{ currentNode | json }}</pre>
I have made 2 fiddle examples
First with
$bindAsArray
which does not update the state after the event triggering.https://jsfiddle.net/tpq0x7zu/1/
And second one with
$bindAsObject
which updates the data after the child node changes.https://jsfiddle.net/f95a1zwx/5/
The text was updated successfully, but these errors were encountered: