Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 2e3f3e7

Browse files
brandonrobertswardbell
authored andcommitted
docs(router): Minor dev guide fixes
closes #1932
1 parent 13aa6b1 commit 2e3f3e7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

public/docs/_examples/router/ts/app/app.component.3.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { HeroService } from './heroes/hero.service';
2828
*/
2929
/* Crisis Center Detail link
3030
// #docregion Dragon-anchor
31-
<a [routerLink]="['/crisis-center/1']">Dragon Crisis</a>
31+
<a [routerLink]="['/crisis-center', 1]">Dragon Crisis</a>
3232
// #enddocregion Dragon-anchor
3333
*/
3434
/* Crisis Center link with optional query params

public/docs/_examples/router/ts/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { HeroService } from './heroes/hero.service';
1313
<h1 class="title">Component Router</h1>
1414
<nav>
1515
<a routerLink="/crisis-center" routerLinkActive="active"
16-
routerLinkActiveOptions="{ exact: true }">Crisis Center</a>
16+
[routerLinkActiveOptions]="{ exact: true }">Crisis Center</a>
1717
<a routerLink="/heroes" routerLinkActive="active">Heroes</a>
1818
<a routerLink="/crisis-center/admin" routerLinkActive="active">Crisis Admin</a>
1919
<a routerLink="/login" routerLinkActive="active">Login</a>

public/docs/ts/latest/guide/router.jade

+3-3
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ h3#navigate Navigate to hero detail imperatively
702702
+makeExample('router/ts/app/heroes/hero-list.component.1.ts','select')(format=".")
703703
:marked
704704
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.
706706

707707
h3#route-parameters Setting the route parameters in the list view
708708
:marked
@@ -1414,9 +1414,9 @@ figure.image-display
14141414
:marked
14151415
It should look something like this, depending on where you run it:
14161416
code-example(format="." language="bash").
1417-
localhost:3000/heroes;id=15&foo=foo
1417+
localhost:3000/heroes;id=15;foo=foo
14181418
: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.
14201420
The path for the "Heroes" route doesn't have an `:id` token.
14211421
:marked
14221422
The query string parameters are not separated by "?" and "&".

0 commit comments

Comments
 (0)