How to observe input element changes in ng-content

后端 未结 5 1602
[愿得一人]
[愿得一人] 2021-01-17 18:03

How to call parent component\'s function when child component observed input changes?

The below is HTML structure.

# app.comopnent.html
5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-17 18:50

    The input event is bubbling and can be listened on the parent component

    Plunker example

提交回复
热议问题