docs: add section to upgrade guide on lazy loading AngularJS (#30541)

PR Close #30541
This commit is contained in:
Brandon
2019-05-17 10:28:33 -05:00
committed by Jason Aden
parent a96976e88f
commit c9f5f3d802
20 changed files with 275 additions and 0 deletions

View File

@ -0,0 +1,12 @@
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));