Skip to content

.otherwise(), .when() should support a TargetState, not just URL redirection. #2967

@christopherthielen

Description

@christopherthielen

something like this:

urlRouterProvider.otherwise(() => ({ state: 'foo', params: { fooId: 123 } }))
urlRouterProvider.when('/foo/:fooId', (arg1: ??, arg2: ??) => ({ state: 'bar', { fooId: arg2.fooId } }))`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions