Created
December 12, 2014 17:19
-
-
Save juanmav/789cc85f1d09d3f9f2b9 to your computer and use it in GitHub Desktop.
Boostrap Angular on device Ready
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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