samedi 14 février 2015

What content would a automatically generated controller in Ember (Ember-CLI) have if I wrote it down explicitly?

In the official Ember documentation is a section describing automatically generated controllers, once the model in a route has been set:


http://ift.tt/1FKQuV7


I wonder what would be the explicit code pendant to this process? In the doc it says "If you did not define it, one will be generated for you." and I assume, this does not happen in form of some auto-generated code, but in memory only.


Can someone show how the simplest version of an



  • ObjectController

  • ArrayController

  • Controller


would look like if you generated them in Ember-CLI by hand?


Aucun commentaire:

Enregistrer un commentaire