I'm having a problem with controllerFor
, and I found this pull request which describes deprecating controllerFor
:
https://github.com/emberjs/ember.js/pull/1896
So this means that I can't use controllerFor
? And if the answer is "not", why does the Ember.js docs still talk about using controllerFor
, as seen here:
http://emberjs.com/guides/routing/setting-up-a-controller/
The pull request you linked to deprecates the controllerFor
method in Ember.Controller
. You can and should use controllerFor
within the router, which is how it is used in the guide you referenced.
Instead of using controllerFor
from controllers you are supposed to instead use the needs mechanism, which is discussed in this guide.
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