Introducing Ionic 2: Making API Calls | packtpub.com

preview_player
Показать описание
This playlist/video has been uploaded for Marketing purposes and contains only introductory videos.

We need to load real data from an API. For this, we need HTTP_PROVIDERS to be provided and the HTTP service to be dependency injected.
• Add HTTP_PROVIDERS to the app level
• Dependency inject the HTTP service into the page
• Make the call and handle Observable's response

For the latest web development video tutorials, please visit

Рекомендации по теме
Комментарии
Автор

i have added
import { HTTP_PROVIDERS } from 'angular2/http';
in the app.module.ts file and added HTTP_PROVIDERS in the providers[ ],


I am getting the error :
Cannot find module "angular2/http"

My Ionic2 details:
Ionic Framework: 3.0.0
Ionic App Scripts: 1.3.0
Angular Core: 4.0.0
Angular Compiler CLI: 4.0.0
Node: 7.9.0
OS Platform: OS X El Capitan
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

BiranchiNarayanNayak
Автор

Hi, I'm getting an error in constructor, it doesn't recognize the ":" from constructor(nav: NavController) can you point me to the right direction?

AlexandruHodis
Автор

can we make call through same wifi network

Lakshman_Handle
visit shbcf.ru