Injecting External Input to Angular2

65 views Asked by At

I want to inject an external input (REST API End Point) and would like to use it in my code. However, I just want to build my application once and I should be able to change my End Point based on the deployment I do. In other words, I want my end point to be parameterised in the Prod environment.

I have tried a lot injection methods already mentioned in Stack Overflow but am unable to achieve my result in Prod Environment.

0

There are 0 answers