Closed kingsloi closed 7 years ago
Hi,
I'm having a hard time trying to access the this.$emit('rendered', outHtml)event emitted from the render method.
this.$emit('rendered', outHtml)
render
How do I listen to that event?
I've tried:
created() { this.$on('rendered', () => { alert('here'); }); },
But no luck. Any ideas?
Oops, I think I had my method incorrectly in the computed object, not the methods.
computed
methods
<vue-markdown :source="markdown" @rendered="isReadyForPrerender()"></vue-markdown>
Hi,
I'm having a hard time trying to access the
this.$emit('rendered', outHtml)
event emitted from therender
method.How do I listen to that event?
I've tried:
But no luck. Any ideas?