This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import { HeroService } from './heroes/hero.service';
28
28
*/
29
29
/* Crisis Center Detail link
30
30
// #docregion Dragon-anchor
31
- <a [routerLink]="['/crisis-center/1' ]">Dragon Crisis</a>
31
+ <a [routerLink]="['/crisis-center', 1 ]">Dragon Crisis</a>
32
32
// #enddocregion Dragon-anchor
33
33
*/
34
34
/* Crisis Center link with optional query params
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { HeroService } from './heroes/hero.service';
13
13
<h1 class="title">Component Router</h1>
14
14
<nav>
15
15
<a routerLink="/crisis-center" routerLinkActive="active"
16
- routerLinkActiveOptions="{ exact: true }">Crisis Center</a>
16
+ [ routerLinkActiveOptions] ="{ exact: true }">Crisis Center</a>
17
17
<a routerLink="/heroes" routerLinkActive="active">Heroes</a>
18
18
<a routerLink="/crisis-center/admin" routerLinkActive="active">Crisis Admin</a>
19
19
<a routerLink="/login" routerLinkActive="active">Login</a>
Original file line number Diff line number Diff line change @@ -702,7 +702,7 @@ h3#navigate Navigate to hero detail imperatively
702
702
+ makeExample('router/ts/app/heroes/hero-list.component.1.ts' ,'select' )( format ="." )
703
703
:marked
704
704
It calls the router's **`navigate`** method with a **Link Parameters Array**. We can use this same syntax
705
- with a `RouterLink` if we want to use it HTML rather than code.
705
+ with a `RouterLink` if we want to use it in HTML rather than code.
706
706
707
707
h3#route-parameters Setting the route parameters in the list view
708
708
:marked
@@ -1414,9 +1414,9 @@ figure.image-display
1414
1414
:marked
1415
1415
It should look something like this, depending on where you run it:
1416
1416
code-example( format ="." language ="bash" ) .
1417
- localhost:3000/heroes;id=15& foo=foo
1417
+ localhost:3000/heroes;id=15; foo=foo
1418
1418
:marked
1419
- The `id` value appears in the query string (`;id=15& foo=foo`), not in the URL path.
1419
+ The `id` value appears in the query string (`;id=15; foo=foo`), not in the URL path.
1420
1420
The path for the "Heroes" route doesn't have an `:id` token.
1421
1421
:marked
1422
1422
The query string parameters are not separated by "?" and "&".
You can’t perform that action at this time.
0 commit comments