dimanche 5 novembre 2017

Get all available Templates in Ember

I'm trying to get all available templates in Ember, as of 2.16.x Ember.TEMPLATES doesn't seem to work anymore. Basically I need exactly this, is there an alternative?

I'm trying to dynamically load a route's template based on a model property. I already have the logic working, all I need is a list of the templates.

Related, but doesn't work anymore: List all available Handlebar Templates in the JavaScript console

Thanks!




Aucun commentaire:

Enregistrer un commentaire