0👍
The same thing that you do to populate the element:
el.innerHTML = '<a href="#" v-on="click: close()"></a>;
can be done to assign a function:
el.onclick = function() {
//do stuff
}
- [Vuejs]-Animating SPA States with Vue
- [Vuejs]-Dynamic components won't render corresponding templates
Source:stackexchange.com