import { NgModuleRef } from '@angular/core'; import { platformBrowser } from '@angular/platform-browser'; import { AppModule } from './app.module'; import { AppModuleNgFactory } from '../compiled/lib/app.module.ngfactory'; export function bootstrapRedoc():Promise> { return platformBrowser().bootstrapModuleFactory(AppModuleNgFactory); }