How to use the @scion/microfrontend-platform.MicrofrontendPlatform.forClient function in @scion/microfrontend-platform

To help you get started, we’ve selected a few @scion/microfrontend-platform 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 SchweizerischeBundesbahnen / scion-workbench / apps / microfrontend-apps / src / testing-app / testing-app-platform-initializer.resolver.ts View on Github external
private startClientPlatform(port: number): Promise {
    Beans.get(PlatformState).whenState(PlatformStates.Starting).then(() => {
      Beans.register(NgZone, {useValue: this._zone});
      Beans.registerDecorator(MessageClient, {useClass: AngularZoneMessageClientDecorator});
    });

    return MicrofrontendPlatform.forClient({symbolicName: `app-${port}`});
  }
}