© Venkata Keerti Kotaru 2020
V. K. KotaruAngular for Material Designhttps://doi.org/10.1007/978-1-4842-5434-9_7

7. Angular: Services and Dependency Injection

Venkata Keerti Kotaru1 
(1)
Hyderabad, India
 

Angular provides features that help encapsulate reusable logic into a service. An Angular service does not have a view. It is the logic and the code that runs in the background (still in the browser).

Along with Angular services, this chapter introduces asynchronous constructs. It begins with simple callback functions in JavaScript, and then describes promises and observables. RxJS is used for observable implementation.

The chapter describes dependency injection in Angular and introduces Angular services, which are powerful and frequently used features. ...

Get Angular for Material Design: Leverage Angular Material and TypeScript to Build a Rich User Interface for Web Apps 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.