mercredi 17 août 2016

Using ember's link-to helper to link to different pages based on a computed property

I would like a certain link on my handlebars page to dynamically change based on a computed property that I have in the page's javascript file.

I discovered a feature of handlebars called Subexpressions but it doesn't seem to allow you to insert a computed property into the middle of a handlebars link-to expression, which would be a simple way of accomplishing what I'm trying to do. The more I look it seems like this may not be possible with vanilla ember.js handlebars helpers, but I figured I should ask here first.

Thanks.




Aucun commentaire:

Enregistrer un commentaire