I don't get a clear difference as to when to use Ember.Controller and when to use Ember.ArrayController and its usage.
With a Controller, you could do {{#each item in model}} in your template.
With ArrayController, you could simply do {{#each item}}.
Could. ArrayController is deprecated because it was obscuring the logic, you should never use it. The Controller is also being deprecated in favor of routeable components, somewhere in Ember 2.1 or 2.2.
Current strategy is the following:
setupController. Instead, put everything into a model, turning it into a hash of models. RSVP.hash is your friend.PS The syntax for each is changing to {{#each model as |item|}}.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With