Sometimes I would prefer to use <a href> with the appropriate path/url instead of calling $state.transitionTo(state).
For this purpose, it would be nice to have an equivalent $state.transitionToUrl and some helpers to get the transition urls for
- the parent state
- a child state
- an arbitrary state
Here is an example of the api:
$state.transitionToUrl = function(to, toParams) {
};
$state.transitionToChildUrl = function(childName, childParams) {
};
$state.transitionToParentUrl = function() {
};
Would others find this useful?