mercredi 3 août 2016

Insert from Ember controller

I want to add links programatically to an ul list, using jquery. But this links should go to a route of my application. So in my controller I had the following code:

$('#localidades').append('<li><a href="">' + title + '</a></li>');

But then I tried (without success of course), appending the handlebars form of links, like this:

$('#localidades').append('<li>' + title + '</li>');

How can this be done with Ember?

Thanks




Aucun commentaire:

Enregistrer un commentaire