mercredi 18 novembre 2015

Ember component for route based template?

I'm a bit new to the new Ember, and am wondering... how can I create a component for a template that was auto generated when creating a route? Is that possible?

For instance, I ran ember g route single-item. It auto created single-item.hbs and the single-item.js route file, but no component file. I want to associate the single-item.hbs with a component to access some component interactions. Would I have to create a separate component for this? Or is there a way to link a new component to this template?




Aucun commentaire:

Enregistrer un commentaire