lundi 23 novembre 2015

Ember controllers in nested routes

i'm very confuse about how ember controller works.

I'm starting with ember and ember-cli now, and i would like to understand more about how controller works.

If i have an nested route called new, inside a events resource, i should i have:

models/event
routes/events/new
templates/events/new

What about controllers?? I just work one simple controller, or should i use controllers/events/new too?

There isn't any generator command that will create every resource for me? I need call one by one?

Thanks.




Aucun commentaire:

Enregistrer un commentaire