DEV Community

Discussion on: Angular Environment Setup - Safe & Testable

Collapse
 
n_mehlhorn profile image
Nils Mehlhorn

Yeah, useValue should work as well, I'm just more used to useFactory in the actual module because I use that when providing window or localStorage.

Shouldn't make too much of a difference though with useFactory you could add some pre-processing later on.