In the grand finale of this series, we recap the accomplishments of the first six parts and give you the application to play with.
Tag: Best Practices
Artful DI in Angular – Part 5: How to Inject a Dependency at the Right Point
Angular services may be singletons, but you can still get more than one, and just where you want them.
Artful DI in Angular – Part 4: How to Make a Directive that Listens for a Browser Event
Learn how to create an Angular attribute directive that executes your custom code when a browser event occurs.
Artful DI in Angular – Part 3: How to Encapsulate a Pattern in an Abstract Service
Make your application behave uniformly and without error by encapsulating your design decisions in an abstract class.
Artful DI in Angular – Part 2: How to create a mock HTTP service
In this post, we’ll use RxJS Observables to mimic Angular’s HttpClient, but without the HTTP part!
Artful Dependency Injection in Angular – Part 1: Introducing the Case Study
In this case study, I will show how the artful use of dependency injection enables you to write Angular components that are more self-contained and reusable.