-
-
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
add "currentUri" to application controller #4963
Comments
Looking further into
What would be nice is if I could access "controllerFor" from here...
OR better yet if Ember just decided to throw As an example of why this is useful, say you want to share a link, but you are running within a Phonegap/Cordova wrapper... it would be as easy as
|
@machty - Thoughts on this one? Seems like a straightforward change, but at this point with three props being set maybe we are missing a higher abstract piece... |
I can understand not wanting to give access to the entire router from controllers, but there are some things in the router controllers may need to access |
@machty never got your input here. |
I think it's safe to close this issue in favour of the RFC on a routing service: emberjs/rfcs#38 @ilovett Feel free to close this issue. It isn't solved, but the RFC would be the right place to continue the discussion. |
Would be fantastic if you could some how build a url based on the currentPath... from within that function... Does a reverse look up of the model for controller and fills in the dynamic url pieces
Why? Running apps on Phonegap / Cordova you will quickly find that "window.location" don't work so well... nah mean?
The text was updated successfully, but these errors were encountered: