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

Commit f8f6756

Browse files
committed
docs(router): Minor content update for Heroes tutorial
- Delete routerLinkActive from the earliest code example as it is not relevant to what the user is trying to achieve at that point in the tutorial
1 parent 66984d5 commit f8f6756

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

public/docs/_examples/toh-5/ts/app/app.component.3.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ import { HeroService } from './hero.service';
1111
template: `
1212
<h1>{{title}}</h1>
1313
<nav>
14-
// #docregion router-link-active
15-
<a [routerLink]="['/dashboard']" routerLinkActive="active">Dashboard</a>
16-
<a [routerLink]="['/heroes']" routerLinkActive="active">Heroes</a>
17-
// #enddocregion router-link-active
14+
<a [routerLink]="['/dashboard']">Dashboard</a>
15+
<a [routerLink]="['/heroes']">Heroes</a>
1816
</nav>
1917
<router-outlet></router-outlet>
2018
`,

public/docs/_examples/toh-5/ts/app/app.component.ts

+2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ import { HeroService } from './hero.service';
1111
template: `
1212
<h1>{{title}}</h1>
1313
<nav>
14+
// #docregion router-link-active
1415
<a [routerLink]="['/dashboard']" routerLinkActive="active">Dashboard</a>
1516
<a [routerLink]="['/heroes']" routerLinkActive="active">Heroes</a>
17+
// #enddocregion router-link-active
1618
</nav>
1719
<router-outlet></router-outlet>
1820
`,

public/docs/ts/latest/tutorial/toh-pt5.jade

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ code-example(language="bash").
265265
:marked
266266
Finally, add a dashboard navigation link to the template, just above the *Heroes* link.
267267

268-
+makeExample('toh-5/ts/app/app.component.ts','template', 'app/app.component.ts (template)')(format=".")
268+
+makeExample('toh-5/ts/app/app.component.3.ts','template', 'app/app.component.ts (template)')(format=".")
269269
.l-sub-section
270270
:marked
271271
We nestled the two links within `<nav>` tags.
@@ -626,7 +626,7 @@ figure.image-display
626626
The Angular Router provides a `routerLinkActive` directive we can use to
627627
add a class to the HTML navigation element whose route matches the active route.
628628
All we have to do is define the style for it. Sweet!
629-
+makeExample('toh-5/ts/app/app.component.3.ts', 'router-link-active', 'app/app.component.ts (active router links)')(format=".")
629+
+makeExample('toh-5/ts/app/app.component.ts', 'router-link-active', 'app/app.component.ts (active router links)')(format=".")
630630
:marked
631631
Set the `AppComponent`’s `styleUrls` property to this CSS file.
632632
+makeExample('toh-5/ts/app/app.component.ts','style-urls', 'app/app.component.ts (styleUrls)')(format=".")

tools/api-builder/links-package/inline-tag-defs/linkDocs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = function linkDocsInlineTagDef(parseArgString, createDocMessage,
4545
var vers = _self.vers;
4646
var prevUri = uri;
4747
uri = path.join(lang, vers, uri);
48-
log.info('Ajusted linkDocs chapter-relative uri (' + doc.fileInfo.baseName + '): ' + prevUri + ' -> ' + uri);
48+
log.info('Adjusted linkDocs chapter-relative uri (' + doc.fileInfo.baseName + '): ' + prevUri + ' -> ' + uri);
4949
}
5050

5151
var isValid = false;

tools/doc-shredder/processors/shredMapProcessor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = function shredMapProcessor(log, createDocMessage) {
4343
mixinPath = appProjDirName + '/' + lang + '/' + mixinPath;
4444
fragInfo = makeFragInfo(options.fragmentsDir, fullExamplePath, fragItem, mixinPath);
4545
if (fragInfo.exists) {
46-
log.info('Ajusted example path (' + doc.fileInfo.baseName + '): ' + appProjRelPath + ' -> ' + mixinPath);
46+
log.info('Adjusted example path (' + doc.fileInfo.baseName + '): ' + appProjRelPath + ' -> ' + mixinPath);
4747
} else {
4848
fragInfo = savedFragInfo;
4949
}

0 commit comments

Comments
 (0)