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

No provider for Http - ionic2 alpha 42

$
0
0

Did you used cordova plugin add plugin.name, ex: cordova plugin add cordova-plugin-geolocation?

After that step most of the plugins will have their own instructions for use, ex for the former geolocation plugin:
navigator.geolocation.getCurrentPosition(onSuccess, onError);

After installing most of them should be available either in window.plugins or navigator variables.

SideNote: In ionic 1 there was ngCordova but idk if it can be used in ionic 2, most likely not.

SideNote2: Check this link to another forum about ngCordova, will clear a few questions: https://forum.ionicframework.com/t/ionic-2-with-ng-cordova/36103


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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