$cordovaSQLite is undefined


#1

I have installed ngCordova and added the database in the $ionicReady function and then the deviceready event listener but I still keep getting the error Cannot read property ‘transaction’ of null I have traced this error in Chrome’s developer tools and it shows that $cordovaSQLite is undefined. I have injected it into the controller and I have even tried injecting it into the function itself but still same error. How do I solve this? Is there some way to check if $cordovaSQLite is installed properly in my app? How can I test this?


#2

ionic plugin list

If cordova-sqlite-storage is not listed:
cordova plugin add https://github.com/litehelpers/Cordova-sqlite-storage.git


#3

Thanks will give that a shot