Skip to content

Commit f6409be

Browse files
committed
Use name instead of as in route configs
Related to NativeScript#2
1 parent 273da34 commit f6409be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/chapters/chapter3.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ import {LoginPage} from "./pages/login/login.component";
517517
template: "<page-router-outlet></page-router-outlet>"
518518
})
519519
@RouteConfig([
520-
{ path: "/Login", component: LoginPage, as: "Login", useAsDefault: true },
520+
{ path: "/Login", component: LoginPage, name: "Login", useAsDefault: true },
521521
])
522522
export class AppComponent {}
523523
```
@@ -565,8 +565,8 @@ Next, replace the existing `@RouteConfig` with the following code so that it inc
565565

566566
``` TypeScript
567567
@RouteConfig([
568-
{ path: "/Login", component: LoginPage, as: "Login", useAsDefault: true },
569-
{ path: "/List", component: ListPage, as: "List" }
568+
{ path: "/Login", component: LoginPage, name: "Login", useAsDefault: true },
569+
{ path: "/List", component: ListPage, name: "List" }
570570
])
571571
```
572572

0 commit comments

Comments
 (0)