In my loop I have more forms referenced after their dynamic ID's. But in the $refs plugin I can not give it a dynamic value.
I want to "ref" to be the value of the parameter
In my loop I have more forms referenced after their dynamic ID's. But in the $refs plugin I can not give it a dynamic value.
I want to "ref" to be the value of the parameter
the solution:
this.$refs[ref].submit()
because your ref
is a string and needs to be inside the []
to enable the dot notation.