CHAPTER 24
Services for Provision and Injection
In this chapter, I describe the services that AngularJS uses behind the scenes for registering AngularJS components and injecting them to resolve dependencies. These are not features you will use in everyday projects, but they are interesting because they provide some useful insights into the way that AngularJS works behind the scenes and because they are useful for unit testing, which I describe in Chapter 25. Table 24-1 summarizes this chapter.
Table 24-1. Chapter Summary
Problem |
Solution |
Listing |
---|---|---|
Decorate a service. |
Use the $provide.decorator method. |
1 |
Discover the dependencies declared ... |
Get Pro AngularJS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.