Skip to content

Instantly share code, notes, and snippets.

@arturovt
Created November 17, 2018 19:54
Show Gist options
  • Save arturovt/b1e7d865d6147e10284d1b8a1949d50e to your computer and use it in GitHub Desktop.
Save arturovt/b1e7d865d6147e10284d1b8a1949d50e to your computer and use it in GitHub Desktop.
this.configLoader = new RouterConfigLoader(loader, compiler, onLoadStart, onLoadEnd);
this.processNavigations();
processNavigations(): void {
this.navigations.pipe(concatMap((nav: NavigationParams) => {
if (nav) {
this.executeScheduledNavigation(nav);
// a failed navigation should not stop the router from processing
// further navigations => the catch
return nav.promise.catch(() => {});
} else {
return <any>of (null);
}
})).subscribe(() => {});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment