I have a component with an @Output
variable. This variable must be of type EventEmitter
according to the documentation
The EventEmitter
looks allot like the Observable
class. They share common methods, like subscribe()
. One should unsubscribe to Observables
after use in order to prevent memory leaks from occuring. Should one do the same with EventEmitter
objects? Should i call complete
on the object when the component is destroyed?