5 ms·
Here's an example where it can be done in Angular: https://www.jvandemo.com/how-to-use-environment-variables-to-configure-your-angular-application-without-a-reb
by bow_ 8y ago
Here's an example where it can be done in Angular: https://www.jvandemo.com/how-to-use-environment-variables-to-configure-your-angular-application-without-a-rebuild/ https://www.jvandemo.com/how-to-use-environment-variables-to....
Not exactly the same as shell environment variables, of course. And you may disagree about exposing the `enableDebug` flag as a runtime config there.
Still it is doable, in a sort of roundabout way, using the browser as the environment.
- alexandernst 8y agoAh, indeed. If you count "open dev shell, manually edit globally exposed variables so that it will affect only my browser" then yes, you can have that as runtime configuration.
- ttty 8y agoYeah funny