redoc/lib/bootstrap.ts

9 lines
364 B
TypeScript
Raw Normal View History

2017-07-22 18:04:54 +03:00
import { NgModuleRef } from '@angular/core';
2016-08-28 21:46:10 +03:00
import { platformBrowser } from '@angular/platform-browser';
2017-07-22 18:04:54 +03:00
import { AppModule } from './app.module';
import { AppModuleNgFactory } from '../compiled/lib/app.module.ngfactory';
2016-08-28 21:46:10 +03:00
2017-07-22 18:04:54 +03:00
export function bootstrapRedoc():Promise<NgModuleRef<AppModule>> {
2016-10-18 23:39:43 +03:00
return platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);
2016-08-28 21:46:10 +03:00
}