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

Commit fc256f6

Browse files
committed
docs(structural-directives): copyedits and some tweaks to code
- Fix variable name `li` --> `i` - a --> an `UnlessDirective` - Jade had both #ngswitch and #ngSwitch as link targets; fixed to use same capitalization as template syntax page. - Fixed broke fragment target (was missing #) - Other copy edits and post-review comments from @wardbell
1 parent dfd360d commit fc256f6

File tree

4 files changed

+119
-90
lines changed

4 files changed

+119
-90
lines changed

public/docs/_examples/structural-directives/ts/src/app/app.component.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ <h2 id="ngIf">NgIf</h2>
3838

3939
<!-- #docregion display-none -->
4040
<p [style.display]="'block'">
41-
Expression sets display to "block"" .
41+
Expression sets display to "block".
4242
This paragraph is visible.
4343
</p>
4444
<p [style.display]="'none'">
45-
Expression sets display to "none" .
45+
Expression sets display to "none".
4646
This paragraph is hidden but still in the DOM.
4747
</p>
4848
<!-- #enddocregion display-none -->
@@ -152,11 +152,9 @@ <h2 id="ngSwitch">NgSwitch</h2>
152152

153153
<div>Pick your favorite hero</div>
154154
<p>
155-
<ng-container *ngFor="let h of heroes">
156-
<label>
157-
<input type="radio" name="heroes" [(ngModel)]="hero" [value]="h">{{h.name}}
158-
</label>
159-
</ng-container>
155+
<label *ngFor="let h of heroes">
156+
<input type="radio" name="heroes" [(ngModel)]="hero" [value]="h">{{h.name}}
157+
</label>
160158
<label><input type="radio" name="heroes" (click)="hero = null">None of the above</label>
161159
</p>
162160

public/docs/_examples/structural-directives/ts/src/app/unless.directive.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// #docplaster
22
// #docregion
3-
// #docregion no-docs
4-
// #docregion skeleton
3+
// #docregion no-docs, skeleton
54
import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';
65

76
// #enddocregion skeleton
@@ -18,7 +17,7 @@ import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';
1817
* </div>
1918
*
2019
* ### Syntax
21-
* *
20+
*
2221
* - `<div *myUnless="condition">...</div>`
2322
* - `<div template="myUnless condition">...</div>`
2423
* - `<template [myUnless]="condition"><div>...</div></template>`
@@ -50,6 +49,3 @@ export class UnlessDirective {
5049
// #enddocregion set
5150
// #docregion skeleton
5251
}
53-
// #enddocregion skeleton
54-
// #enddocregion no-docs
55-
// #enddocregion

public/docs/ts/latest/guide/displaying-data.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ figure.image-display
147147
:marked
148148
Notice the `hero` in the `ngFor` double-quoted instruction;
149149
it is an example of a template input variable. Read
150-
more about template input variables in the [microsyntax](./template-syntax.html#ngForMicrosyntax) section of
150+
more about template input variables in the [microsyntax](./template-syntax.html#microsyntax) section of
151151
the [Template Syntax](./template-syntax.html) page.
152152

153153
Angular duplicates the `<li>` for each item in the list, setting the `hero` variable

0 commit comments

Comments
 (0)