Skip to content

Commit 72a3ca7

Browse files
dananapreymmalerba
authored andcommitted
docs(material/cdk/observers): Documentation supplement due to extended capabilities of the directive (#31352)
(cherry picked from commit 223e114)
1 parent b8b565f commit 72a3ca7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cdk/observers/observers.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@ mutation to the content is observed.
1212
<ng-content></ng-content>
1313
</div>
1414
```
15+
16+
Directive also can be used for observing any type of content
17+
```html
18+
<div class="content-wrapper" (click)="changeText()" (cdkObserveContent)="textChanged()">
19+
{{ text }}
20+
</div>
21+
```

0 commit comments

Comments
 (0)