Skip to content

Instantly share code, notes, and snippets.

@pmaoui
Last active May 18, 2018 16:25
Show Gist options
  • Save pmaoui/27fd9e7ae1676f2b1a0ad2d5e4262f45 to your computer and use it in GitHub Desktop.
Save pmaoui/27fd9e7ae1676f2b1a0ad2d5e4262f45 to your computer and use it in GitHub Desktop.
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { UpgradeModule } from '@angular/upgrade/static';
@NgModule({
imports: [
BrowserModule,
UpgradeModule
]
})
export class AppModule {
constructor(private upgrade: UpgradeModule) { }
ngDoBootstrap() {
this.upgrade.bootstrap(document.getElementById('ng-app'), ['App'], { strictDi: true });
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment