0👍
I got the loop working with this:
this.$refs.userProfileComponent.forEach(i => i.functionInsideChildComponent());
if you want to use multiple statements or functions inside change it to:
this.$refs.userProfileComponent.forEach(i => {
i.functionInsideChildComponent();
console.log("hello");
});
- [Vuejs]-Getting a single array from an array of object
- [Vuejs]-Embedded tweets not displaying properly in vue
Source:stackexchange.com