File tree 3 files changed +22
-8
lines changed
3 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 1
1
// this import should be first in order to load some required settings (like globals and reflect-metadata)
2
2
import { platformNativeScriptDynamic , NativeScriptModule } from "nativescript-angular/platform" ;
3
3
import { NgModule } from "@angular/core" ;
4
- import { NavigationMainPageRouter , routes } from "./main/main-page-router-outlet" ;
4
+ import { NavigationMainPageRouter , routes , routableComponents } from "./main/main-page-router-outlet" ;
5
5
import { NativeScriptRouterModule } from "nativescript-angular/router" ;
6
6
7
7
@NgModule ( {
8
- declarations : [ NavigationMainPageRouter ] ,
8
+ declarations : [
9
+ NavigationMainPageRouter ,
10
+ ...routableComponents
11
+ ] ,
9
12
bootstrap : [ NavigationMainPageRouter ] ,
10
13
imports : [
11
14
NativeScriptModule ,
@@ -15,4 +18,4 @@ import { NativeScriptRouterModule } from "nativescript-angular/router";
15
18
} )
16
19
class AppComponentModule { }
17
20
18
- platformNativeScriptDynamic ( ) . bootstrapModule ( AppComponentModule ) ;
21
+ platformNativeScriptDynamic ( ) . bootstrapModule ( AppComponentModule ) ;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ import { NavigationInfoComponent } from "../navigation-options/navigation-info.c
59
59
</StackLayout>
60
60
` ,
61
61
} )
62
- class MainComponent { }
62
+ export class MainComponent { }
63
63
64
64
@Component ( {
65
65
selector : 'navigation-main' ,
@@ -92,4 +92,15 @@ export const routes: RouterConfig = [
92
92
{ path : 'nav-info' , component : NavigationInfoComponent }
93
93
] ;
94
94
95
- export var MainRouterProviders = nsProvideRouter ( routes , { enableTracing : false } ) ;
95
+ export const routableComponents = [
96
+ AppComponent , MainComponent , NavigationTestRouter ,
97
+ FirstComponent , SecondComponent ,
98
+ FirstComponentActionBar , SecondComponentActionBar ,
99
+ BindingComponent ,
100
+ ListViewMainPageComponent , ListViewComponent ,
101
+ ListViewControlComponent , ListViewAsyncPipeComponent ,
102
+ ModalTest , ModalTestWithPushStrategy ,
103
+ NavigationOptionsComponent , NavigationInfoComponent ,
104
+ ]
105
+
106
+ export var MainRouterProviders = nsProvideRouter ( routes , { enableTracing : false } ) ;
Original file line number Diff line number Diff line change 9
9
"version" : " 2.1.1"
10
10
},
11
11
"tns-android" : {
12
- "version" : " 2.1.1 "
12
+ "version" : " 2.2.0 "
13
13
}
14
14
},
15
15
"dependencies" : {
19
19
"@angular/platform-browser" : " 2.0.0-rc.5" ,
20
20
"@angular/platform-browser-dynamic" : " 2.0.0-rc.5" ,
21
21
"@angular/platform-server" : " 2.0.0-rc.5" ,
22
- "@angular/router" : " 3.0.0-rc.1" ,
22
+ "@angular/router" : " 3.0.0-rc.1" ,
23
23
"@angular/forms" : " 0.3.0" ,
24
24
"nativescript-angular" : " 0.4.0" ,
25
25
"tns-core-modules" : " 2.2.1"
33
33
"nativescript-dev-typescript" : " ^0.3.2" ,
34
34
"typescript" : " ^1.8.10"
35
35
}
36
- }
36
+ }
You can’t perform that action at this time.
0 commit comments