0👍
This could not work. You set the leaf
property multiple times which is not supported. I assume you would do something like:
var myvar = {stick: [
{leaf: {name: "Vincent"}},
{leaf: {name: "Charles"}},
...
]};
console.log(myvar.stick[0].leaf.name);
- [Vuejs]-Computed variable is undefined after button click
- [Vuejs]-SCRIPT438: SCRIPT438: Object doesn't support property or method 'component'
0👍
You’d want tree[0].stick.leaf.name
with the data you have.
Source:stackexchange.com