samedi 1 mai 2021

How to bind actions to markup in ember template by } (Template helper)?

I am constructing a markup string with an onclick action as shown below.

    helpInfoMarkup: computed('levelInfo.name', function() {
       return '<a class="help-text" ' + get(this, 'levelInfo.name') + '</a>';
    }

My .hbs file

<div>}</div>

However this is not binding to the ember action and just appears as part of the markup and does not work? Any thoughts on this ?




Aucun commentaire:

Enregistrer un commentaire