Skip to content

Commit

Permalink
docs(platform): Explain ionic.Platform.ready() further
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Apr 6, 2014
1 parent 3a57712 commit ead30f2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/utils/platform.js
Expand Up @@ -37,8 +37,12 @@
* @ngdoc method
* @name ionic.Platform#ready
* @description
* Trigger a callback once the device is ready,
* or immediately if the device is already ready.
* Trigger a callback once the device is ready, or immediately
* if the device is already ready. This method can be ran from
* anywhere and does not need to be wrapped by any additonal methods.
* When the app is within a WebView (Cordova), it'll fire
* the callback once the device is ready. If the app is within
* a web browser, it'll fire the callback after `window.load`.
* @param {function} callback The function to call.
*/
ready: function(cb) {
Expand Down

0 comments on commit ead30f2

Please sign in to comment.