0👍
The ref
is beign applied and i made a fiddle to see it that it works.
But,if you want to add a reference to sm-form-row
component then you have to add the ref
attribute in the parent component.For example in parent component:
<sm-form-row ref="formRow" />
And in your parent component you can access it as:
this.$refs.formRow
Also you will be able to access the methods of the child component.For example if the child component has a method called myMethod you can access it in parent component like this:
this.$refs.formRow.myMethod
- [Vuejs]-Working with SVG icon files in vue cli 3 project
- [Vuejs]-How to modify deep vuex data with v-model
Source:stackexchange.com