I want to deploy an angular 2 app to different web app slots (let\'s say dev, staging and prod) using VSTS CI/CD. Each slot should point to a different web api. Normally one
Only backend language can access APP Settings as environment variables at runtime. As Angular 2 is on the front side, we can't directly read these settings from front-end. A workaround to it is read app settings via backend which exposes an endpoint, then access this endpoint via AJAX call in your Angular 2 app.
You can check out my earlier post where I posted PHP sample code to read APP Settings.