Commit b851f6cdcb4231f454ed1331c5c571ce833efdc8
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request !3
Showing
3 changed files
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; |