[Vuejs]-Vuejs component couldn't access data

0👍

Thank you @IsraGab for your response and the code.
Your are right it’s working but there is another problem that I didn’t ask correctly.

It’s not working when I’m calling the component method from main app in incorrect way.
After a day searching I find the solution.
Using Component Refs

The correct way to calling method is:

this.$refs.errMsg.show('some messages')

Where we have component tag like this:

<v-error ref="errMsg"></v-error>

Thanks again to all

Leave a comment