Skip to content

$state.transitionToUrl - to return the path/url of a transition #55

Closed
@dbrans

Description

@dbrans

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions