I have an angular-cli application (angular version 4.0.0). I want to have access to my environment variables in the environment.ts file created from cli.
Example:
export SOME_VARIABLE=exampleValue
When I create an angular application, I want the "exampleValue" to be filled in the SOME_VARIABLE field.
// environment.ts export const environment = { production: false, SOME_VARIABLE: process.env.SOME_VARIABLE };
Unfortunately, process.env is not available in this file. How can I access it?
Blake source share