Do you need to unsubscribe from @Output EventEmitter

后端 未结 2 998
自闭症患者
自闭症患者 2021-01-04 04:07

On the Angular website they have an example of a Parent and Child component talking to each other using @Output() onVoted = new EventEmitter();.

2条回答
  •  有刺的猬
    2021-01-04 04:48

    i think you don't have to do unsubscribe. Since You are not using child to parent component iteration for fetching data from API there is no need to unsubscribe.

提交回复
热议问题