Now that we learned how data was shared among classes before services and that this wasn’t very DRY or scalable, let’s learn how to use services for dependency injection.
This is the second piece of a two-part article about dependency injection. In the first, we learned why we would want to use services in Angular. In this post, we will look at how to use them.
To be able to follow through in this article’s demonstration, you should have:
#angular #javascript #web-development