Make an RPG
Example of How to pass data to parent component
So, you have a component and you need to pass data up to it's parent. How do you do it?
You need 2 things:
In the v-on handler you can write code or use a function. Let's see what it looks like if we call another function instead of setting the color directly:
The only difference here is that we're calling the function change2, instead of directly embedding code.
In the next lesson, we will learn about Example of How to use v-bind:is in Dynamic Components
Get the Latest Tutorial Updates