3

I'm using a filter returning plain HTML in vuejs. And in this HTML there is a v-on tag. How can I make vuejs to parse again HTML to detect new content/events listeners/ etc. ?

Thanks

1 Answer 1

3

UPDATE: In Vue 1.0, if you know what components you need to instantiate (versus compiling random HTML), you can also use the parent argument on View Model instantiation: http://vuejs.org/api/#parent


You will need to manually compile that HTML within the View Model using $compile (currently undocumented). See this discussion for more information:

https://github.com/vuejs/Discussion/issues/77

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.