File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 6
6
//profiling.start("application-start");
7
7
8
8
// "nativescript-angular/application" import should be first in order to load some required settings (like globals and reflect-metadata)
9
- import {
10
- NativeScriptModule ,
11
- platformNativeScriptDynamic ,
12
- NativeScriptRouterModule ,
9
+ import {
10
+ NativeScriptModule ,
11
+ platformNativeScriptDynamic ,
12
+ NativeScriptRouterModule ,
13
13
NativeScriptFormsModule ,
14
14
NativeScriptHttpModule ,
15
- routerTraceCategory ,
15
+ NSModuleFactoryLoader ,
16
+ routerTraceCategory ,
16
17
rendererTraceCategory ,
17
18
listViewTraceCategory ,
18
- PAGE_FACTORY ,
19
- PageFactory ,
19
+ PAGE_FACTORY ,
20
+ PageFactory ,
20
21
PageFactoryOptions ,
21
22
onAfterLivesync ,
22
23
onBeforeLivesync
23
24
} from "nativescript-angular" ;
24
- import { NgModule } from "@angular/core" ;
25
+ import { NgModule , NgModuleFactoryLoader } from "@angular/core" ;
25
26
import { Router } from "@angular/router" ;
26
27
import { Page } from "ui/page" ;
27
28
import { Color } from "color" ;
@@ -90,7 +91,11 @@ function makeExampleModule(componentType) {
90
91
entries = componentType . entries ;
91
92
}
92
93
entries . push ( componentType ) ;
93
- let providers = [ ] ;
94
+
95
+ let providers = [
96
+ { provide : NgModuleFactoryLoader , useClass : NSModuleFactoryLoader }
97
+ ] ;
98
+
94
99
if ( componentType . providers ) {
95
100
providers = componentType . providers ;
96
101
}
You can’t perform that action at this time.
0 commit comments