@@ -13,6 +13,7 @@ import { ListViewComponent } from "../listView/commonTemplate/list-view-page";
13
13
import { ListViewControlComponent } from "../listView/customTemplate/list-view-item-template" ;
14
14
import { ListViewAsyncPipeComponent } from "../listView/asyncPipeTemplate/async-pipe-template"
15
15
import { ListViewMainPageComponent } from "../listView/listViewMainPage/list-view-main-page"
16
+ import { ModalTest , ModalTestWithPushStrategy } from "../modal/modal-dialog.component" ;
16
17
17
18
@Component ( {
18
19
selector : "main" ,
@@ -35,6 +36,10 @@ import { ListViewMainPageComponent } from "../listView/listViewMainPage/list-vie
35
36
</StackLayout>
36
37
<Button text="Binding" [nsRouterLink]="['Binding']"></Button>
37
38
<Button text="ListViewExamples" [nsRouterLink]="['ListViewMainPage']"></Button>
39
+ <StackLayout orientation="horizontal" horizontalAlignment="center">
40
+ <Button text="modal" [nsRouterLink]="['Modal']"></Button>
41
+ <Button text="modal(onPush)" [nsRouterLink]="['ModalWithPushStrategy']"></Button>
42
+ </StackLayout>
38
43
</StackLayout>
39
44
` ,
40
45
} )
@@ -59,6 +64,8 @@ class MainComponent { }
59
64
{ path : '/listView/listViewMainPage' , component : ListViewMainPageComponent , name : 'ListViewMainPage' } ,
60
65
{ path : '/listView/customTemplate' , component : ListViewControlComponent , name : 'ListViewCustomTemplate' } ,
61
66
{ path : '/listView/asyncPipeTemplate' , component : ListViewAsyncPipeComponent , name : 'ListViewAsyncPipe' } ,
67
+ { path : '/modal' , component : ModalTest , name : 'Modal' } ,
68
+ { path : '/modal-on-push' , component : ModalTestWithPushStrategy , name : 'ModalWithPushStrategy' } ,
62
69
63
70
] )
64
71
export class NavigationMainPageRouter { }
0 commit comments