Last active
May 18, 2018 16:25
-
-
Save pmaoui/27fd9e7ae1676f2b1a0ad2d5e4262f45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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