3👍
Inside {{ }}
in a Vue template you are evaluating a JavaScript expression. The result of the expression a = b
is b
.
There is nothing Vue-specific about this behaviour:
let a;
console.log(a = 1); // output: 1
- [Vuejs]-How do I assign an array of objects to an empty array in a Vue component?
- [Vuejs]-How to make an interdepending form input with props in vue?
Source:stackexchange.com