Skip to content

Commit f541d7e

Browse files
tjblasiblickly
authored andcommitted
Update ngroute externs to include function as a valid type for $routeProvider.Params#template
See https://docs.angularjs.org/api/ngRoute/provider/$routeProvider but note that the docs incorrectly claim that the function will be called with Array.<Object>. The [source] shows that it is called with route.params, which is Object<string, string>. [source]: https://github.com/angular/angular.js/blob/v1.6.x/src/ngRoute/route.js#L809 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=167916688
1 parent 29b424e commit f541d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/externs/angular-1.6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,7 @@ angular.$routeProvider.Params.prototype.controller;
22992299
/** @type {string|undefined} */
23002300
angular.$routeProvider.Params.prototype.controllerAs;
23012301

2302-
/** @type {string|undefined} */
2302+
/** @type {string|function(!Object<string, string>): string|undefined} */
23032303
angular.$routeProvider.Params.prototype.template;
23042304

23052305
/** @type {string|!Object|function(!Object<string,string>=)} */

0 commit comments

Comments
 (0)