code-with-us-angular-quickstart icon indicating copy to clipboard operation
code-with-us-angular-quickstart copied to clipboard

A question about EventEmitter

Open RezaRahmati opened this issue 7 years ago • 0 comments

Hey Ward

I read your comment under someone post about EventEmitters (in Angular Services), since it was written 2016 I was wondering if it's still valid?

Do NOT count on EventEmitter continuing to be an Observable!

Do NOT count on those Observable operators being there in the future!

These will be deprecated soon and probably removed before release.

Use EventEmitter only for event binding between a child and parent component. Do not subscribe to it. Do not call any of those methods. Only call eve.emit()

RezaRahmati avatar Jun 01 '18 17:06 RezaRahmati