-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider making currentModel
in Ember.Route
public
#11760
Comments
👍 super useful - when I see in a route |
Discussed this at the core team meeting this afternoon, and decided that we'd like to keep this as private. As you mentioned |
Thanks for opening the issue for discussion, I'm going to close now that we have discussed and decided to keep private. |
Sounds good, I will then create an alias in |
This private API is one I use frequently in my applications to programmatically get the current route's model. It is mostly a convenience for
this.modelFor(this.routeName)
¹. This is especially useful for writing re-usable route code which needs to get at the current route's model.¹ Though
routeName
is private, see #11759The text was updated successfully, but these errors were encountered: