Use angular wrapping for phonegap plaugins?


#1

What are peoples views on this? If i have a phonegap plugin, should i write a angular factory method (like ionic has in the learning ionic, for the camera function), or is it really not needed?


#2

Wrappers, all the way. Angular likes to keep control of everything and having things injected properly will always benefit you as your application grow.

Take a look at Brian Fords blog about cordova and angular

http://briantford.com/blog/angular-phonegap


#3

Thank you. I had created my own wrapper for a phonegap plugin i wrote, but i wasnt sure it is was overkill or not.