I can't use cordova plugins


#1

Hi, guys.
I want to use $cordovaContacts.
I created an app with ionic. Then i copied ‘ng-cordova.min.js’ to ‘www’ folder. And i called it in my ‘index.html’.
Then i copied this code to my controller js file. Then i copied this code to my app js file, too. Finally i wrote this code:

ion-item ng-repeat=“contact in contacts” href="#/app/playlists/{{playlist.id}}"
{{contact.name}}
/ion-item

But it doesn’t work in my android device. (I didn’t try another device. I don’t need the others now.)

And console error :

I researched on the internet. But I can’t use any cordova or ionic plugin. I am new, sorry for english.

Thanks…