inca / voie

[UNMAINTAINED] Simple Vue.js router / layout manager
141 stars 7 forks source link

Can't apply v-ref on v-view #23

Open esiao opened 8 years ago

esiao commented 8 years ago

Vue.js says it's not a component therefore it can't have a v-ref.

The reason why I would like to put a v-ref is that it's then possible in the root to trigger an event on the child ref mostly for transitions/animations.

I can use a bus event (as dispatch is deprecated by Vue 2.0) as an alternative but since it's parent -> child relation I would like to be able to do it in Voie as I was able with vue-router. Hope this is something we could see in the next version of the library.

Thanks.