You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it says "Ember's container should be viewed as an implementation detail, and is not part of the supported public API." But I see this.container.lookup being used and suggested as a solution all over these issues and forums. If container is being provided as a property on main framework objects, isn't that contradictory?
Also, if I'm assuming using the container to lookup things is ok as long as it's accessed this way, I can't find any public API docs about accessing the container property on a controller, route, etc.
So, is this.container.lookup(…) discouraged or ok? And if so, why? And if so, where is the docs for the container property on framework classes?
The text was updated successfully, but these errors were encountered:
If container is being provided as a property on main framework objects, isn't that contradictory?
It exists as a escape valve for use-cases not initially understood, but assumed to exist. Hence being discouraged. There is some work by @dgeb that should further remove more of the discovered use-cases.
Here:
http://guides.emberjs.com/v1.11.0/understanding-ember/dependency-injection-and-service-lookup/
it says "Ember's container should be viewed as an implementation detail, and is not part of the supported public API." But I see
this.container.lookup
being used and suggested as a solution all over these issues and forums. If container is being provided as a property on main framework objects, isn't that contradictory?Also, if I'm assuming using the container to lookup things is ok as long as it's accessed this way, I can't find any public API docs about accessing the container property on a controller, route, etc.
So, is
this.container.lookup(…)
discouraged or ok? And if so, why? And if so, where is the docs for the container property on framework classes?The text was updated successfully, but these errors were encountered: