deviceReady how to

Check out this post, which shows you how to set up cordova/phonegap features correctly

The suggested method is to define the ionic.Plateform.ready method as a module and working from there.