10Implementing Angular Services in Web Applications
One of the most fundamental components of Angular functionality is services. Services provide task-based functionality to applications. You can think of a service as a chunk of reusable code that performs one or more related tasks. Angular provides several built-in services and also allows you to create your own customized services.
This chapter introduces built-in Angular services. You will get a chance to see and implement some of the built-in services, such as http
for web server communication, router
for managing and changing the state of an application, and animate
to provide animation capabilities.
Understanding Angular Services
The purpose of a service is to provide a concise bit of ...
Get Learning Angular, 2nd Edition 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.