How to use the preboot/__build/src/browser/preboot_browser.prebootClient function in preboot

To help you get started, we’ve selected a few preboot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rangle / angular-ssr / examples / cli / src / main.ts View on Github external
platformBrowserDynamic().bootstrapModule(AppModule).then(() => prebootClient().complete());
github rangle / angular-ssr / examples / demand-express / app / root.module.ts View on Github external
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;
      }
    });
  }