How do I use ngCordova exactly?


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.


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”


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