Processor Pattern with Angular Dependency Injection
summary
Claim: implement the Processor (Command) pattern inside Angular by registering multiple implementations under one InjectionToken and multi provider and injecting an array with @Inject to pick one by name. Concrete builds include ninja weapon processors and chart processors that replace a monolithic service of ~30 functions with small classes, strong-typed names, and private transform/draw methods. Integration with NgRx caching prevents repeated API calls so charts load from store after the first fetch; demo shows it works and simplifies unit testing.
AI-written summary · about
chapters (5)
- 0:00Start
- 1:07Agenda
- 1:29Dependency Injection
- 5:27Dependency Injections Is Static
- 20:01Data Table Processor
related talks
28mProcessor Pattern with Angular Dependency Injection
57mAngular Dependency Injection, In Depth
01h 00mAngular Dependency Injection In-Depth
27mAngular Architecture: From Patterns to Implementation
19mRxJS Patterns in Angular
28mUnleash The Power Of Angular With Knowledge of Patterns
46mAngular Dependency Injection – Understanding hierarchical injectors
26mSoftware Patterns and Design with AngularJS
