I just updated my application to Angular 16, which uses a lot of EventEmitter in a service to show where the user is in the app (setting Boolean values). signals were added in this release and I am trying to understand the benefits of switching. The code appears to be simpler.
Their guide for "Sharing data between child and parent directives and components" still uses EventEmitter.
EventEmitterisn't to be used in services, it's to be used with components so you can add event listeners from HTML:Source: docs
Use a signal or a(n)
Observable/Subject. Choosing between these two is a longer debate. Signals are still in preview, though they're making quite an impression on the Angular ecosystem, it's a safe bet they're here to stay. AnObservablecarries the power of RxJS to process streams of data. So, whatever suits your need best, really.