79
rated 0 times
[
85]
[
6]
/ answers: 1 / hits: 80467
/ 8 Years ago, thu, march 3, 2016, 12:00:00
I'm trying to access a specific child by name. At the moment, because of where the child is, I'm calling the child by this:
this.$root.$children[0]
Which is ok as long as that child is always [0]
but it would be great if there’s a way to do something like:
this.$root.$children['detail']
I keep thinking $refs
might be the answer to my problem but can never find a way that it helps me.
Any ideas?
More From » vue.js