Interact with backend APIs Similar with the serise of Getting started with Angular 1.5 and ES6 , after a glance at Angular2, we will try to fecth data from the real backend APIs. In this Angular2 sample, we still reuse the sample codes of Java EE 7 and Jaxrs RESTful APIs to serve backen RESTful APIs. There are several variants in the root folder of this repository, we use the cdi for our case. Following the Getting started wiki page to deploy it into a running wildfly server. Create a common API service Following the Angular2 Style Guide , we create a CoreModule to share the service like singleton class to the application scope. Create a folder named core under src/app if it does not exist. And enter app/core , use ng to generate the a service naned Api . ng g service api It will create an api.service.ts and an api.service.spec.ts in this folder. Create a module specific purpose file named core.module.ts , fill the following home. import { NgModule ...