Skip to content

GuillaumeDrillaud/TechcipherApp

 
 

Repository files navigation

TechcipherApp

Mobile App using Cordova and AngularJS.

Uses following dependencies

Overview

'deviceready' is the key for bootstrapping cordova with angularjs

angular.module('fsCordova', [])
.service('CordovaService', ['$document', '$q',
  function ($document, $q) {

      var d = $q.defer(),
          resolved = false;

      var self = this;
      this.ready = d.promise;

      document.addEventListener('deviceready', function () {
          resolved = true;
          d.resolve(window.cordova);
      });

      // Check to make sure we didn't miss the 
      // event (just in case)
      setTimeout(function () {
          if (!resolved) {
              if (window.cordova) d.resolve(window.cordova);
          }
      }, 3000);
  }]);


var tcApp = angular.module('tcApp', ['fsCordova', 'ngRoute']);

Demo

for code walk through go to "Building Mobile App with Cordova, Bootstrap and AngularJS"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 68.2%
  • JavaScript 25.1%
  • HTML 2.3%
  • CSS 1.4%
  • Batchfile 1.2%
  • Objective-C 1.2%
  • Other 0.6%