docs: Remove confusion between do/avoid templates (#38647)

PR Close #38647
This commit is contained in:
Dwayne Hinterlang 2020-08-31 00:50:16 +02:00 committed by Joey Perrott
parent d5fabc303d
commit 0a7a5e3aff
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ import { Hero } from '../shared/hero.model';
template: `
<section>
Our list of heroes:
<hero-profile *ngFor="let hero of heroes" [hero]="hero">
</hero-profile>
<toh-hero *ngFor="let hero of heroes" [hero]="hero">
</toh-hero>
Total powers: {{totalPowers}}<br>
Average power: {{totalPowers / heroes.length}}
</section>