Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Cordova Plugins Syntax in Ionic 2

$
0
0

@skippertech wrote:

Hey Guys,
I did a lot of googling and couldn't seem to come up with much of an answer, how does the syntax of calling Cordova plugins in Ionic 2 work.

Like for example, in Ionic 1:
I was using a facebook plugin, and I would call it like: $cordovaFacebook.login(["public_profile", "email","name","last_name","first_name","birthday","age_range","link"]).then(function (success) {

I would also 'inject' it and add it as a dependency. Both things I am not sure how to do with Ionic 2.

I read somewhere that with Ionic 2 that isn't as nesscary, but I am still unsure

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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