Emberjs - 如何在RC1中访问当前状态或路由名称?

Moh*_*hin 6 router ember.js

在RC1中,如何全局获取当前状态名称或当前路由名称?

更具体的替代语法: App.get('router').currentState.name;

mav*_*ein 8

看看这个问题的答案:Ember App.Router.router.currentState undefined

简短回答:当前状态是ApplicationController中名为"currentPath"的存储.