feat(router): add router-level events for GuardsCheck and Resolve (#17601)
This commit is contained in:
@ -96,6 +96,9 @@ export class RouterPreloader implements OnDestroy {
|
||||
return this.processRoutes(ngModule, this.router.config);
|
||||
}
|
||||
|
||||
// TODO(jasonaden): This class relies on code external to the class to call setUpPreloading. If
|
||||
// this hasn't been done, ngOnDestroy will fail as this.subscription will be undefined. This
|
||||
// should be refactored.
|
||||
ngOnDestroy(): void { this.subscription.unsubscribe(); }
|
||||
|
||||
private processRoutes(ngModule: NgModuleRef<any>, routes: Routes): Observable<void> {
|
||||
|
Reference in New Issue
Block a user