Skip to content

Instantly share code, notes, and snippets.

@lakshmig
lakshmig / app.js
Created November 4, 2014 05:55
Angular Device Ready for Ionic with Cordova
// Copy below code at the begining of app.js
var ngDocument = angular.element(document);
angular.element(ngDocument).ready(function() {
alert()
ngDocument.on('deviceready', function() {
alert("inside device ready");
var body = ngDocument.find('body');
angular.bootstrap(body, ['starter']);
});