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
}
Source:stackexchange.com
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
}