Listen v-on dynamically on vuejs
I am using a filter returning plain HTML in vuejs. And this HTML has a tag v-on
. How can I get vuejs to parse HTML again to discover new content / event / etc listeners?
thank
+3
Extaze
source
to share
1 answer
UPDATE: In Vue 1.0, if you know what components you need to instantiate (versus compiling random HTML), you can also use an argument parent
for the View Model instance: http://vuejs.org/api/#parent
You will need to manually compile this HTML into the View Model using the $compile
(currently undocumented). See this discussion for more information:
https://github.com/vuejs/Discussion/issues/77
+3
David K. Hess
source
to share