Commit 069f69c7d6b46c0e89c35f0139867622cc64d633
1 parent
1bcc4d019e
Exists in
master
implementación foca-sqlite
Showing
3 changed files
with
7 additions
and
1 deletions
Show diff stats
package.json
| ... | ... | @@ -86,6 +86,7 @@ |
| 86 | 86 | "foca-modal-vendedores": "git+http://git.focasoftware.com/npm/foca-modal-vendedores.git", |
| 87 | 87 | "foca-nombre-empresa": "git+http://git.focasoftware.com/npm/foca-nombre-empresa.git", |
| 88 | 88 | "foca-seguimiento": "git+http://git.focasoftware.com/npm/foca-seguimiento.git", |
| 89 | + "foca-sqlite": "git+http://git.focasoftware.com/npm/foca-sqlite.git", | |
| 89 | 90 | "foca-teclado": "git+http://git.focasoftware.com/npm/foca-teclado.git", |
| 90 | 91 | "font-awesome": "^4.7.0", |
| 91 | 92 | "gulp-angular-templatecache": "^2.2.1", |
src/js/app.js
src/js/controller.js
| ... | ... | @@ -3,7 +3,11 @@ angular.module('appWrapperDemo') |
| 3 | 3 | '$scope', |
| 4 | 4 | '$rootScope', |
| 5 | 5 | '$timeout', |
| 6 | - function($scope, $rootScope, $timeout) { | |
| 6 | + 'focaSqliteService', | |
| 7 | + function($scope, $rootScope, $timeout, focaSqliteService) { | |
| 8 | + document.addEventListener('deviceready', function() { | |
| 9 | + focaSqliteService.openDataBase(); | |
| 10 | + }); | |
| 7 | 11 | $scope.usarTeclado = false; |
| 8 | 12 | $rootScope.$broadcast('usarTeclado', false); |
| 9 | 13 | $scope.mostrarTeclado = false; |