Future<ComponentRef> bootstrapStatic(Type appComponentType, [ List customProviders, Function initReflector ])

See bootstrap for more information.

Source

Future<ComponentRef> bootstrapStatic(
  Type appComponentType, [
  List customProviders,
  Function initReflector,
]) {
  if (initReflector != null) {
    initReflector();
  }
  final appProviders = customProviders != null && customProviders.isNotEmpty
      ? [BROWSER_APP_PROVIDERS, customProviders]
      : BROWSER_APP_PROVIDERS;
  final platformRef = browserStaticPlatform();
  final appInjector =
      ReflectiveInjector.resolveAndCreate(appProviders, platformRef.injector);
  return coreLoadAndBootstrap(appInjector, appComponentType);
}