Angular 12 Services
Services are a crucial part of every well-structured Angular application. This course will teach you how to create great services, and how to use Angular's dependency injection system to deliver the right service at the right time.
What you'll learn
Services are a core building block in all Angular applications. In this course, Angular Services, you'll learn how to create and deliver the discrete, functional services needed to meet all of your user requirements. First, you'll explore how to create services. Next, you'll discover how to provide those services to Angular's dependency injection system. Finally, you'll delve into configuring injectors to precisely control when and where your services are delivered. When you're finished with this course, you'll have the foundational understanding and practical skills required to build well-structured Angular applications that take full advantage of services and Angular's dependency injection system.
Table of contents
- Introduction and Overview 1m
- What Is Dependency Injection? 4m
- Provider Tokens and Recipes 3m
- Demo: Multiple Ways to Provide Services 9m
- The Role of Injectors 1m
- Hierarchical Injectors 2m
- Demo: Hierarchical Injectors 3m
- Deciding Where to Provide Services 1m
- Demo: Providing Feature Services 4m
- Organizing Services 1m
- Summary 1m
- Introduction and Overview 1m
- What Are Asynchronous Services? 4m
- Observables 6m
- Demo: Processing an Asynchronous HTTP Request with an Observable 9m
- Demo: Abstracting Away HTTP Errors 5m
- Promises 7m
- Demo: Asynchronously Executing a Task with a Promise 7m
- Understanding async/await 1m
- Demo: Handling a Promise with async/await 7m
- Summary 1m