在RC1中,如何全局获取当前状态名称或当前路由名称?
更具体的替代语法: App.get('router').currentState.name;
看看这个问题的答案:Ember App.Router.router.currentState undefined
简短回答:当前状态是ApplicationController中名为"currentPath"的存储.
| 归档时间: |
|
| 查看次数: |
7003 次 |
| 最近记录: |