[Vuejs]-Vue.js – data access with dynamic components

0👍

The solution is to move the two template scripts outside of the #app div

0👍

You should either remove the key contact from the data part of your Vue root instance, or use another name in the v-for iterator (e.g. v-for="myContact in contacts")

UPDATE

Also, you should not use script tags for the template – use template instead, because Chrome ignores non-JavaScript script tags.
The solution – https://codepen.io/TMCDOS/pen/gjYWNY

Leave a comment