Easy way for configuring proxy for your Angular2 CLI applications


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


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:


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