Angular Services
Angular Services are a core piece of almost every Angular application. This course will teach you not just how to create Angular courses but all the in-depth details regarding Angular dependency injection, providers, injectors, and more!
What you'll learn
Angular Services are a core piece of almost every Angular application, but there is much more to understanding services beyond simply creating and using a service class. In this course, Angular Services, you’ll not only develop a knowledge of how to create custom services, but you'll also gain a strong foundation of how Angular dependency injection, providers, and injectors work. First, you’ll explore how to create and use custom Angular services. Next, you’ll learn about dependency injection and how Angular's implementation of dependency injection works. Finally, you’ll learn how angular providers work and how to manage your services with the different, hierarchical levels of Angular injectors. When you’re finished with this course, you’ll have the in-depth skills and knowledge of Angular services needed to confidently develop reliable, professional, and efficient Angular applications.
Table of contents
- What Are Service Providers and Injectors? 3m
- How Providers Affect Instantiation 5m
- Using Classes as Provider Tokens 4m
- Creating useFactory() Providers 2m
- Using Providers to Create Multiple Service Instances 5m
- Challenges with Providing Services Using Interfaces 9m
- Creating a Configurable Cart 6m
- Creating useValue() Providers 7m
- Supplying Provider Dependencies (deps) 2m
- Using the multi Property 2m
- What Are Service Injectors? 2m
- How Angular's Hierarchical Injectors Work 3m
- Configuring Injectors 4m
- A Graphical Look at Injectors 6m
- Defining Component-level Providers 3m
- Resolution Modifiers: @Self(), @SkipSelf(), @Host() and @Optional() 6m
- Standalone Projects: Route-level Injectors and Providers 7m
- Standalone Projects: Application-wide Providers 3m