Get current route name in Ember

前端 未结 10 2117
我在风中等你
我在风中等你 2020-11-30 05:20

I need to get the current route name in my ember application; I tried this: Ember App.Router.router.currentState undefined but it doesn\'t work for me (there is probablig so

10条回答
  •  渐次进展
    2020-11-30 05:50

    Currently as of Ember 1.7.0 you can get the current route from within a route by calling this.routeName.

提交回复
热议问题