How do I use ngCordova exactly?


#1

So i want to use the datepicker plugin but when i use the test code provided it just won’t work. it gives me an error of

but when i try console logging $cordovaDatePicker, it returns an object with a show function.


#2

Maybe you missed adding the plugin itself? (with cordova plugin add [url])

Remember that ngCordova is just a helper to integrate cordova plugins in the angular “lifecycle”


#3

nevermind! i’m an idiot. i added ngcordova after cordova.js