Skip to content

Instantly share code, notes, and snippets.

'use strict';
angular.module('angDroidFrontendApp’).factory('CordovaReady', [
'$q', //(1)
function($q) {
return function(scope) { //(2)
var deferred = $q.defer();
document.addEventListener('deviceready', function() { //(3)
if(scope){
scope.$apply(function(){ //(4)
@nstuart
nstuart / Error
Created August 9, 2012 00:05
Problems with rails 3.2.7, Mysql 5.5 on OS X.
rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:migrate