Info
A service is a component that is not linked to a view. It is a standard class that provides services to the components, and it does not have to be injectable. In the example that follows, we are going to make the service injectable.
Consider this basic service
Notice the decorator, it marks this class as Injectable. Now we need inject it in a desired component