Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228598

EXCEPTION: No provider for Http! How to solve?

$
0
0

You need two other providers: ConnectionBackend and HTTP_PROVIDERS.

So:
import {Http, ConnectionBackend, HTTP_PROVIDERS} from 'angular2/http';

And:

@App({
providers: [Http, ConnectionBackend, HTTP_PROVIDERS]
})

No need for the rxjs if you don't use map.


Viewing all articles
Browse latest Browse all 228598

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>