Providing Module Configuration Using forRoot() And Ahead-Of-Time Compiling In Angular 7.2.0

Опубликовано: 05 Ноябрь 2024
на канале: Ben Nadel
1,910
19

Ben Nadel demonstrates how he uses an intermediary InjectionToken to take .forRoot() feature module options and translate them into proper Types so that he can then use the Dependency-Injection container to inject an "Options" Type without having to rely on unattractive @Inject() meta-data.

Blog Post: https://www.bennadel.com/blog/3565-pr...