Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
platformBrowserDynamic().bootstrapModule(AppModule).then(() => prebootClient().complete());
const subscription = finished.subscribe(([event, stable]) => {
if (stable === false) {
return;
}
switch (true) {
case event instanceof NavigationError:
case event instanceof NavigationEnd:
prebootClient().complete();
subscription.unsubscribe();
break;
default:
break;
}
});
}