CHAPTER 18

image

Working with Modules and Services

In this chapter, I recap the role that modules play in AngularJS and show you how to can use modules to organize the components in an application. I also introduce the service component, show you the different ways to create and use services, and briefly describe the many built-in services that AngularJS includes. I say briefly because I dive into the detail of the built-in services in the chapters that follow. Table 18-1 summarizes this chapter.

Table 18-1. Chapter Summary

Problem

Solution

Listing

Split an application into multiple files.

Extend an existing module or create a new one.

1–5 ...

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.