When should we use Observer and Observable?

An interviewer asked me: What is Observer and Observable and when should we use them? I wasn’t aware of these terms, so when I got back home and started Googling about Observer and Observable, I found some points from different resources: 1) Observable is a class and Observer is an interface. 2) The Observable class … Read more

Delegation: EventEmitter or Observable in Angular

I am trying to implement something like a delegation pattern in Angular. When the user clicks on a nav-item, I would like to call a function which then emits an event which should in turn be handled by some other component listening for the event. Here is the scenario: I have a Navigation component: import … Read more