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

Commit c5f37b8

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 0331083 commit c5f37b8

File tree

3 files changed

+118
-89
lines changed

3 files changed

+118
-89
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

0 commit comments

Comments
 (0)