I'm new to angular and I wondered what were the options to parameterize an angular SPA against an external configuration (a .properties file in the fs for exemple). Is there an idiomatic way of doing this?
Thanks in advance.
I'm new to angular and I wondered what were the options to parameterize an angular SPA against an external configuration (a .properties file in the fs for exemple). Is there an idiomatic way of doing this?
Thanks in advance.
Since I'm using Angular CLI I could use the environment.ts file.
The documentation being here
Be careful though, I spent alot of time trying to make it work and realized that the feature was broken in version 1.2.2 (it is apparently fixed in version 1.2.6). More informations here and here