Code samples repository for the examples provided in "Learning Angular 2", published by Packt Publishing - THE BOOK COVERS UP TO RC.1 and hence is severely OUTDATED. PLEASE REFER TO THE LATEST EDITIONS INSTEAD.
Once we start changing the service you state that the HTTTP_PROVIDERS (note, there is a typo) has already been injected at the top root component. We never actually are instructed to make that change in the book. I assume that we need the following in app.component.ts
import {HTTP_PROVIDERS} from '@angular/http'; and then in the providers
providers: [SHARED_PROVIDERS, HTTP_PROVIDERS],
Once we start changing the service you state that the HTTTP_PROVIDERS (note, there is a typo) has already been injected at the top root component. We never actually are instructed to make that change in the book. I assume that we need the following in app.component.ts
import {HTTP_PROVIDERS} from '@angular/http';
and then in the providersproviders: [SHARED_PROVIDERS, HTTP_PROVIDERS],