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

added by JavaScript Kicks
1/24/2019 11:10:25 AM

241 Views

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.


0 comments