Skip to content

Commit b87a4c4

Browse files
Ahmed-HakeemAndrewKushnir
authored andcommitted
docs: update NgClass example description to match the example's behavior (angular#55209)
Co-authored-by: Sonu Kapoor <[email protected]> PR Close angular#55209
1 parent 4f9084e commit b87a4c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adev/src/content/guide/directives/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ Because `isSpecial` is true, `ngClass` applies the class of `special` to the `<d
6363

6464
<docs-code header="src/app/app.component.html" path="adev/src/content/examples/built-in-directives/src/app/app.component.html" visibleRegion="NgClass-1"/>
6565

66-
For this use case, Angular applies the classes on initialization and in case of changes.
67-
The full example calls `setCurrentClasses()` initially with `ngOnInit()` and when the dependent properties change through a button click.
66+
For this use case, Angular applies the classes on initialization and in case of changes caused by reassigning the `currentClasses` object.
67+
The full example calls `setCurrentClasses()` initially with `ngOnInit()` when the user clicks on the `Refresh currentClasses` button.
6868
These steps are not necessary to implement `ngClass`.
6969

7070
## Setting inline styles with `NgStyle`

0 commit comments

Comments
 (0)