CHAPTER 7

image

Services and Server Communication

In the last chapter, we looked at HTML forms as a means of presenting a user interface for gathering a set of user registration data. However, we didn’t look at the next step in the process, that is, sending that data along to a back-end server for processing. In this chapter, we will achieve this by using Angular services. As Angular services are about much more than sending data to servers, we will first look at them at a more general level.

The term service is rather overused in the development world, so what do we mean when we talk about Angular services? A good way to think about an Angular service ...

Get Beginning 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.