O'Reilly logo

AngularJS Services by Jim Lavin

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 1. The Need for Services

In this chapter, we are going to cover why services are needed, how they support your application, and their responsibility in the overall application. Along the way, we will cover the responsibilities of the other AngularJS components and provide some guidelines on how to determine where your code should go according to the best practices.

I've watched presentations on AngularJS, and people always talk about the models, views, and controllers, but they often leave out the most important component, services.

Services underlie everything; they provide cross-cutting functionality, request and manipulate data, integrate with external services, and incorporate business logic, and yet they're as simple as a JSON object. ...

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