{"action":"closed","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/2262","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2262/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2262/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2262/events","html_url":"https://github.com/angular-ui/ui-router/issues/2262","id":107972245,"number":2262,"title":"Bootstrapping for phonegap/cordova","user":{"login":"astutesoftware","id":5484181,"avatar_url":"https://avatars.githubusercontent.com/u/5484181?v=3","gravatar_id":"","url":"https://api.github.com/users/astutesoftware","html_url":"https://github.com/astutesoftware","followers_url":"https://api.github.com/users/astutesoftware/followers","following_url":"https://api.github.com/users/astutesoftware/following{/other_user}","gists_url":"https://api.github.com/users/astutesoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/astutesoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astutesoftware/subscriptions","organizations_url":"https://api.github.com/users/astutesoftware/orgs","repos_url":"https://api.github.com/users/astutesoftware/repos","events_url":"https://api.github.com/users/astutesoftware/events{/privacy}","received_events_url":"https://api.github.com/users/astutesoftware/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-23T17:54:13Z","updated_at":"2015-09-24T05:35:43Z","closed_at":"2015-09-24T05:35:43Z","body":"I have a page that uses angular ui-router to render two views on the same page. I ultimately need to have this run under phonegap/cordova so will have to bootstrap angular to the elements on a deviceready event.\r\n\r\nI managed to encapsulate the code into a function and when the function is called at the end of the page it works fine.\r\n\r\nHowever when the same function is called on the window.onload or document ready event it fails to work. In fact if the function is called from the javascript console itself after page load it just fails to work.\r\n\r\nNeed help figuring out what is exactly going wrong.\r\n\r\ncode here: http://geo.tikoo.com/bootstrap.php#/messaging\r\n"}}