docs(aio): add class attribute to example referenced in Structural Directive guide (#19446)

See https://github.com/angular/angular/blob/master/aio/content/guide/structural-directives.md

From the structural-directives.md:
The rest of the <div>, including its class attribute, moved inside the <ng-template> element.

Maybe this made sense at one time but it has become out of sync.

PR Close #19446
This commit is contained in:
trevorade 2017-09-27 13:04:07 -06:00 committed by Miško Hevery
parent 65a2cb8307
commit b841e0d530
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<blockquote>
<!-- #docregion built-in, asterisk, ngif -->
<div *ngIf="hero" >{{hero.name}}</div>
<div *ngIf="hero" class="name">{{hero.name}}</div>
<!-- #enddocregion built-in, asterisk, ngif -->
</blockquote>
@ -51,7 +51,7 @@
<p>&lt;ng-template&gt; element</p>
<!-- #docregion ngif-template -->
<ng-template [ngIf]="hero">
<div>{{hero.name}}</div>
<div class="name">{{hero.name}}</div>
</ng-template>
<!-- #enddocregion ngif-template -->