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

Commit 400fbbf

Browse files
wesalvaropetebacondarwin
authored andcommitted
routeParams are {!Object<string, string>}
Calling Object.keys on null is a TypeError. And the mapping should be string -> string. Closes #10896
1 parent 27bf2ce commit 400fbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngRoute/route.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ function $RouteProvider() {
477477
* definitions will be interpolated into the location's path, while
478478
* remaining properties will be treated as query params.
479479
*
480-
* @param {Object} newParams mapping of URL parameter names to values
480+
* @param {!Object<string, string>} newParams mapping of URL parameter names to values
481481
*/
482482
updateParams: function(newParams) {
483483
if (this.current && this.current.$$route) {

0 commit comments

Comments
 (0)