[solved]Database in ionic

Tanks Callender

already managed to do what I wanted thanks to your help.
SO I would like to know one more thing, is it possible to check for ionic binding to the internet from the device? I was trying to use the plugin cordova not yet got it working :confused: also saw your post here How to use Cordova plugins with Ionic Framework, the Angular way
but what the variable var checkConnection gets the value = function up ()} ;

once again, thanks for the help