We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f936f9 commit 0b78bdfCopy full SHA for 0b78bdf
src/url/urlRouter.ts
@@ -117,7 +117,7 @@ export class UrlRouterProvider {
117
*
118
* @return [[$urlRouterProvider]] (`this`)
119
*/
120
- rule(rule: ($injector: $InjectorLike, $location: LocationServices) => string): UrlRouterProvider {
+ rule(rule: ($injector: $InjectorLike, $location: LocationServices) => string|void): UrlRouterProvider {
121
if (!isFunction(rule)) throw new Error("'rule' must be a function");
122
this.rules.push(rule);
123
return this;
0 commit comments