To do a REST call from within an Angular2 app, it is highly recommended to use the observer pattern, since this gives you the flexibility of asynchronous loads and much more.The easiest way is to use the Observable implementation from the Reactive framework. This allows you to use the observable pattern without the hassle to code such an pattern by your own. Since there are different approaches to setup, call the REST service and read data, I’m gonna show you one of the easiest approaches to reach this goal step by step.
Category: Angular2
Angular2 is the successor of the popular Angular framework from Google. It’s a complete rewrite and it is not compatible with Angular 1. Here you can find articles and tutorials about this topic.