UI-Router $state.$current wrapper for arbitary state

前端 未结 2 361
清酒与你
清酒与你 2021-01-25 04:27

Here is the use case. Given a stateConfig object, I can access state.url, but this only returns the URL specified in that configuration object, not the URL that in

2条回答
  •  孤城傲影
    2021-01-25 05:05

    Got it. After a bit of logging, i realized that calling state.$$state() will return the wrapped state config object.

提交回复
热议问题