Skip to content

Instantly share code, notes, and snippets.

@juanmav
Created December 12, 2014 17:19
Show Gist options
  • Select an option

  • Save juanmav/789cc85f1d09d3f9f2b9 to your computer and use it in GitHub Desktop.

Select an option

Save juanmav/789cc85f1d09d3f9f2b9 to your computer and use it in GitHub Desktop.
Boostrap Angular on device Ready
document.addEventListener("deviceready",
function() {
angular.element(document).ready(
function () {
// retrieve the DOM element that had the ng-app attribute
var domElement = document.getElementById('appElement');
angular.bootstrap(domElement, ["angularAppName"]);
});
}, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment