loading...

re: Compile-time vs. Runtime configuration of your Angular App VIEW POST

FULL DISCUSSION
 

How would you do if every feature had a switch for dev and prod?

 

That's more of a use case for feature toggles (there are a couple of libs out there). But in the end, the feature toggle config could be downloaded via this runtime config I describe in the post & then processed.
The various configs for dev, prod etc...is something the server needs to give you at disposal.
Either via a static json deployed by the CI, or via an API etc..

code of conduct - report abuse