Hi what is the recommen…

less than 1 minute read

Hi, what is the recommended way to share environment variables (environments/environment.ts) with libs? Simply importing them would create a cyclic dependency.


Libs should never use env files, use forRoot to initialize the lib module with configuration and an injection token https://www.usefuldev.com/post/Angular:%20Creating%20configurable%20libraries%20with%20angular%20cli