Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 RC1 中,如何全局获取 currentstatename 或当前路由名称?
更具体的替代语法: App.get('router').currentState.name;
看看这个问题的答案:Ember App.Router.router.currentState undefined
简短的回答:当前状态存储在名为“currentPath”的 ApplicationController 中。