Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

phonegap's deviceready event with canjs and steal

$
0
0
Does anyone have a technique for kicking off the app after the phonegap deviceready event? I'm using stealjs, canjs and phonegap.

Using AngularJS I'd do something like this.

  1. document.addEventListener('deviceready', function onDeviceReady() {
  2.  angular.bootstrap(document, ['YourAppName']);
  3.  }, false);

  4.  var YourAppName = angular.module('YourAppName', []);



Viewing all articles
Browse latest Browse all 3491

Trending Articles