Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$routeParams get confused with some urls #1501

Closed
@MTLoD

Description

@MTLoD

I found a strange bug with $routeParams when using urls that include a part that named like a param that defined later on that url:

$routeProvider.when('/foo/:ID/:bar');

When using this, everything is fine. But if I change this definition to:

$routeProvider.when('/bar/:ID/:bar');

... then the values inside $routeParams.ID and $routeParams.bar get switched.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions