UNPKG

@chatterton/angular2-schema-form

Version:

Angular2 Schema Form (DISCLAIMER: it is not related to angular-schema-form)

17 lines (11 loc) 393 B
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { bootloader } from '@angularclass/hmr'; import { AppModule } from './module'; declare const HMR: string; export function main(): Promise<any> { return platformBrowserDynamic() .bootstrapModule(AppModule) .catch(err => console.error(err)); } if (HMR) { bootloader(main); } if (!HMR) { main(); }