In this lecture, we will create a very simple service to understand how services are useful in angular for code re-usability. In the last lecture we theoretically understood what a service is.
Let's go ahead and create a service in this lecture and let's use that service in different components of our angular application.