Skip to content

Commit e31208b

Browse files
ahasallatscott
authored andcommitted
docs: fix minor error in the "Structural directives" guide (angular#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 angular#37452
1 parent 3569fdf commit e31208b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aio/content/guide/structural-directives.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ You enable these features in the string assigned to `ngFor`, which you write in
251251

252252
Everything _outside_ the `ngFor` string stays with the host element
253253
(the `<div>`) as it moves inside the `<ng-template>`.
254-
In this example, the `[ngClass]="odd"` stays on the `<div>`.
254+
In this example, the `[class.odd]="odd"` stays on the `<div>`.
255255

256256

257257
</div>

0 commit comments

Comments
 (0)