Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How to Decouple server calls from Client in Angular 2 ? #2576


User avatar
0
omkarchoudhari created

We are building an Angular 2 client front-end application that calls external API's . However noticed that the account controller in client project makes all server call and points to it.

Whereas we want to decouple this and actually call external login API from the client.

Please suggest the best way to modify the code in client to achieve this. Our API calls should direct to external server and not the existing server in the project.

We have client demos lined up , so this functionality is pretty critical for us.

Looking forward to your guidance.

Thanks.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    If you are talking about our Angular2 template, server and client apps are decoupled. If not, can you write your tempate type ?