docs: fix minor error in the "Structural directives" guide (#37452)

The sample code used in this guide uses [class.od]="odd".
But, in another portion of the guide, [ngClass]="odd" is mentioned instead.

PR Close #37452
This commit is contained in:
Amadou Sall 2020-06-05 11:49:20 +02:00 committed by atscott
parent 3569fdf451
commit e31208beb1
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ You enable these features in the string assigned to `ngFor`, which you write in
Everything _outside_ the `ngFor` string stays with the host element
(the `<div>`) as it moves inside the `<ng-template>`.
In this example, the `[ngClass]="odd"` stays on the `<div>`.
In this example, the `[class.odd]="odd"` stays on the `<div>`.
</div>