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:




Comments

Popular posts from this blog

How make a two-way binding to your contenteditable DIV or SPAN using AngularJS directives

How easily make a stereoscopic camera for Unity

AngularJS - How to add a JavaScript method for calling by ng-click and serializing your object with JSON filter