Angular | Use Inheritance to Unsubscribe from Observables
Inheritance is a mighty tool for reusing code and easily maintaining software programs long term. Design Patterns like Template Method, Factory Method, or Bridge show how useful inheritance can be.
There are lot of debates about preferring object composition over inheritance — from my point of view it depends which problems you want to solve or which people you try to help. In the example of this article we are using inheritance, and, of course, you could also solve it using object composition, too.
[...]
The matching medium article can be found here.
Nx
This project was generated using Nx.
Installation
$ npm i
Start
$ nx serve