Hello,
I am loading deletable chips that have methods attached to it. However, the method @click=“deletePersonalisedTag” does not seem to work/invoked for dynamically loaded chips.
Any advice?
loadPersonalisedTags: function () {
var self = this;
var tags = 'PHP,Java,HTML,Ruby,Delphi,C++,VB,GoLang';
var array_tags = tags.split(",");
var newChip = array_tags.map(function (e, i) {
return '<div class="chip"><div class="chip-label">'+ e +'</div><a href="#" class="chip-delete" @click="deletePersonalisedTag"></a></div>'
}).join("");
$("#div_personalised_tags").html(newChip);
},
Thanks!