Ember.js: controllerFor x needs

I have a problem with controllerFor , and I found this pull request that describes the deprecated controllerFor :

https://github.com/emberjs/ember.js/pull/1896

So that means that I cannot use controllerFor ? And if the answer is no, why are the Ember.js docs still talking about using controllerFor , as shown here:

http://emberjs.com/guides/routing/setting-up-a-controller/

+6
source share
1 answer

The pull request you bound rejects the controllerFor method in Ember.Controller . You can and should use controllerFor inside the router, as used in the manual you referenced.

Instead of using controllerFor from controllers, you should instead use the needs engine, which is discussed in this guide .

+11
source

All Articles