Passionate about Web & Mobile App Development (Vue, Laravel, PHP, Quasar, Kotlin, Jetpack Compose, TypeScript, Docker, DevOps). Let's interact and get your solution up and running
Thank you Marina for your tutorial. As a beginner, it has helped me get the grasp on Vue.js.
Also, I tried out this bit and it worked just fine with v-model, without using the function return syntax:
data: {
favoriteGame: null,
response: ''
},
Marina Mosti is a full-stack web developer with over 14 years of experience in the field. She enjoys mentoring other women on JavaScript and her favorite framework, Vue.
Hi James, thanks for your words. In components, you MUST use the function return syntax, else the state is going to get SHARED by all your components. If this is your MAIN component, App.vue, you can get away with using this syntax because you can guarantee there will only be one.
Passionate about Web & Mobile App Development (Vue, Laravel, PHP, Quasar, Kotlin, Jetpack Compose, TypeScript, Docker, DevOps). Let's interact and get your solution up and running
Thank you Marina for your tutorial. As a beginner, it has helped me get the grasp on Vue.js.
Also, I tried out this bit and it worked just fine with v-model, without using the function return syntax:
data: {
favoriteGame: null,
response: ''
},
Thanks for the good work.
Hi James, thanks for your words. In components, you MUST use the function return syntax, else the state is going to get SHARED by all your components. If this is your MAIN component, App.vue, you can get away with using this syntax because you can guarantee there will only be one.
You're very much welcome Marina, and thank you for clarifying this.