Skip to content

Commit 5cb5702

Browse files
Ayudhclydin
authored andcommitted
refactor(@schematics/angular): rename guard param of generated file
Closes #18601
1 parent 61701ab commit 5cb5702

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/schematics/angular/guard/files/__name@dasherize__.guard.ts.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import { Observable } from 'rxjs';
77
})
88
export class <%= classify(name) %>Guard implements <%= implementations %> {
99
<% if (implements.includes('CanActivate')) { %>canActivate(
10-
next: ActivatedRouteSnapshot,
10+
route: ActivatedRouteSnapshot,
1111
state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
1212
return true;
1313
}
1414
<% } %><% if (implements.includes('CanActivateChild')) { %>canActivateChild(
15-
next: ActivatedRouteSnapshot,
15+
childRoute: ActivatedRouteSnapshot,
1616
state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
1717
return true;
1818
}

0 commit comments

Comments
 (0)