Saturday, March 18, 2017

Easy way for configuring proxy for your Angular2 CLI applications

Problem: 

Calling backend API from angular2 applications is not easy. If you call the API on another port you will receive cross-reference error. 

Solution:

Angular CLI has a built-in proxy server that can wrap and redirect your calls to your backend API address. I found this tutorial helpful:




No comments:

Post a Comment