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
First of all, m-model is passing by value, meaning that you need to use it to refer to an index of an array, not the value of the item in the array. So you would change the value to m-model="names[index]", and the value of the m-for to "personName,index in names".
I'll be fixing m-model to work with radio buttons better in v0.11.0, by keeping a reference to the compiled value of regular attributes and m-literal.
You can pass {{person}} to a method using m-on and it should pass by reference, but passing it through m-model would require Moon to detect this and compile it as Javascript (adding a lot of weight).
Hi @kingpixil, Radio boxes with the same
m-model
value do update data model. Check this out:And the html:
The radiobox doesn't change the value of
{{person}}
as expected. Or is there something I am missing?The text was updated successfully, but these errors were encountered: