Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emberjs - How to access the current state or route name in RC1?

In RC1 how can I get the currentstatename or current route name globally?

More specific, alternate syntax of : App.get('router').currentState.name;

like image 794
Mohammad Nazmuz Salehin Avatar asked Mar 10 '13 04:03

Mohammad Nazmuz Salehin


1 Answers

Have a look at the answer to this question: Ember App.Router.router.currentState undefined

Short answer: The current state is stores in the ApplicationController under the name "currentPath".

like image 90
mavilein Avatar answered Sep 19 '22 13:09

mavilein