O'Reilly logo

Pro AngularJS by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 19

image

Services for Global Objects, Errors, and Expressions

In this chapter, I show you the built-in services that AngularJS provides for accessing global objects, dealing with exceptions, displaying dangerous data, and processing expressions. These are some of the most useful services that AngularJS provides, and using them directly gives you the ability to control some of the fundamental AngularJS features that I demonstrated in earlier chapters. Table 19-1 summarizes this chapter.

Table 19-1. Chapter Summary

Problem

Solution

Listing

Access global objects in a way that eases unit testing.

Use the $document, $interval, $log, $timeout ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required