Get current path with dynamic segment in ember.js -


i wondering how can current path in ember dynamic element ? know there

@get('currentpath')  

in applicationcontroller give me "user.show" , able retrive path "/users/1". know can window.location.href there other ("the ember") way ?

regards piotr

i'm not sure if qualifies ember way it's not listed in docs, controller's target object contains both reference document.location , property called lastseturl.

this.get('target').location.lastseturl; // "/foo/1" 

Comments

Popular posts from this blog

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

ruby on rails - Authlogic - how to make a registration and don't log in the new account? -