Transitions - UI-Router route listener

ui-router provides a transition transition object, transition.to() represents the activated state, and transition.from() represents the active state in the past;

Use transition.params('to') to represent the routing parameter details of the activated state;

Use transition.params('from') to represent the details of route parameters that were active in the past;

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324882412&siteId=291194637