Skip to content

A function in the Route to just leave current route, whatever it is. #199

Description

@Benjy1979

Hi,

It would be nice to have a function that leaves the current route and goes back up to the parent route using all the same parameters.

Like in the router, if I have afterModel(model, transition) , I may want to immediately leave the route after the route has done something in particular but it's a bit contrived to have to spell out the full route path in this.transitionTo('route1.route2.route3') etc

The code would be more reusable if you could just say:"this.leaveCurrentRoute() or just this.exitRoute() or this.leave()", blind to what route it actually is.

Thanks.

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