0👍
You can write your type
attribute as a bound attribute using the :type
syntax. See: https://vuejs.org/guide/syntax.html
Then you don’t need the moustache braces (@{{ ... }}
) when you’re already inside an expression. You can just write:
<input :name="levels[level.id][currency.id]" v-model="...">
or even simpler (since you’re already looping through levels
):
<input :name="level[currency.id]" v-model="...">
EDIT
I created a JSFiddle with some mock data (probably not exactly the same as yours, though) and tried it in MS Edge. It worked fine:
Maybe you forgot to copy a part of the code?
Source:stackexchange.com