ANGULAR-UI-ROUTER: Resolve state from URL

前端 未结 4 1303
清酒与你
清酒与你 2020-12-16 20:14

I\'m making an app with dynamical states, and sometimes I need to resolve the state name from the url.

e.g.: I have /dashboard/user/12268 and I need to

4条回答
  •  清歌不尽
    2020-12-16 20:36

    The current state can be obtained from $state service. like $state.current Check this api http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state

提交回复
热议问题