Skip to content

Commit b62abec

Browse files
committed
test: using nsRouterLink with relative route (#16)
1 parent 8946fb2 commit b62abec

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

app/app.routes.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ export const routes = [
4848
routeEntry({ path: 'binding', component: BindingComponent, data: { title: "Binding", isNavigatable: true} }),
4949

5050
routeEntry({ path: 'ListViewExamples', component: ListViewMainPageComponent, data: { title: "ListViewExamples", isNavigatable: true} }),
51-
routeEntry({ path: 'listView/commonTemplate', component: ListViewComponent, data: { title: "commonTemplate" } }),
52-
routeEntry({ path: 'listView/customTemplate', component: ListViewControlComponent, data: { title: "customTemplate" } }),
53-
routeEntry({ path: 'listView/asyncPipeTemplate', component: ListViewAsyncPipeComponent, data: { title: "asyncPipeTemplate" } }),
54-
routeEntry({ path: 'listView/nestedTemplate', component: ListViewWithNestedTemplateComponent, data: { title: "nestedTemplate" } }),
51+
routeEntry({ path: "ListViewExamples/commonTemplate", component: ListViewComponent, data: { title: "commonTemplate" } }),
52+
routeEntry({ path: "ListViewExamples/customTemplate", component: ListViewControlComponent, data: { title: "customTemplate" } }),
53+
routeEntry({ path: "listView/asyncPipeTemplate", component: ListViewAsyncPipeComponent, data: { title: "asyncPipeTemplate" } }),
54+
routeEntry({ path: "listView/nestedTemplate", component: ListViewWithNestedTemplateComponent, data: { title: "nestedTemplate" } }),
5555

5656
routeEntry({ path: 'listPicker', component: ListPickerMainPageComponent, data: { title: "ListPicker", isNavigatable: true } }),
5757
routeEntry({ path: 'listPicker/list-picker', component: ListPickerComponent, data: { title: "ListPicker", isNavigatable: false } }),

app/listView/listViewMainPage/list-view-main-page.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { Component } from "@angular/core";
44
selector: "main",
55
template: `
66
<StackLayout>
7-
<Button text="ListView" [nsRouterLink]="['/listView','commonTemplate']"></Button>
8-
<Button text="ListViewCustomTemplate" [nsRouterLink]="['/listView','customTemplate']"></Button>
9-
<Button text="ListViewAsyncPipe" [nsRouterLink]="['/listView','asyncPipeTemplate']"></Button>
10-
<Button text="NestedTemplate" [nsRouterLink]="['/listView','nestedTemplate']"></Button>
11-
</StackLayout>
7+
<Button text="ListView" [nsRouterLink]="'commonTemplate'"></Button>
8+
<Button text="ListViewCustomTemplate" [nsRouterLink]="'customTemplate'"></Button>
9+
<Button text="ListViewAsyncPipe" [nsRouterLink]="['/listView','asyncPipeTemplate']"></Button>
10+
<Button text="NestedTemplate" [nsRouterLink]="['/listView','nestedTemplate']"></Button>
11+
</StackLayout>
1212
`,
1313
})
1414
export class ListViewMainPageComponent { }

0 commit comments

Comments
 (0)