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
Description
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.