I have this component that appends to the BODY element a div when a user clicks on it. When the component unloads on page change through Vue-router I want to delete this appended div. Is there a specific method that I can use within the component to trigger a dom event?
http://vuejs.org/api/#destroyed
var myComponent = Vue.extend({
destroyed:function(){
//do your worst!
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With