File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ export class RootComponent {
4747 bootstrap : [ RootComponent ]
4848} )
4949export class AppModule {
50- constructor ( private upgrade : UpgradeModule ) {
50+ constructor ( upgrade : UpgradeModule ) {
51+ upgrade . bootstrap ( document . body , [ 'demo' ] , { strictDi : true } ) ;
5152 }
5253
5354 ngDoBootstrap ( ) {
Original file line number Diff line number Diff line change @@ -9,15 +9,16 @@ if (environment.production) {
99 enableProdMode ( ) ;
1010}
1111
12- // platformBrowserDynamic().bootstrapModule(AppModule);
1312
14- platformBrowserDynamic ( ) . bootstrapModule ( AppModule )
15- . then ( ref => {
16- // Once Angular bootstrap is complete then we bootstrap the AngularJS module
17- const upgrade = ref . injector . get ( UpgradeModule ) as UpgradeModule ;
13+ // platformBrowserDynamic().bootstrapModule(AppModule)
14+ // .then(ref => {
15+ // // Once Angular bootstrap is complete then we bootstrap the AngularJS module
16+ // const upgrade = ref.injector.get(UpgradeModule) as UpgradeModule;
1817
19- upgrade . bootstrap ( document . body , [ 'demo' ] ) ;
20- } ) ;
21- // platformBrowserDynamic().bootstrapModule(AppModule);
18+ // upgrade.bootstrap(document.body, ['demo']);
19+ // });
20+
21+
22+ platformBrowserDynamic ( ) . bootstrapModule ( AppModule ) ;
2223
2324
You can’t perform that action at this time.
0 commit comments