3👍
✅
Use square brackets to access the dynamic property on a
:
<input type="text" :name="a" :id="b" :value="a[b]">
Source:stackexchange.com