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