This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var root = $(document.getElementsByTagName('body')); | |
var watchers = []; | |
var f = function (element) { | |
if (element.data().hasOwnProperty('$scope')) { | |
angular.forEach(element.data().$scope.$$watchers, function (watcher) { | |
watchers.push(watcher); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(angular){ | |
angular.module('Service.Sqlite',[]) | |
.factory('SqliteService', function($cordovaSQLite){ | |
var db = null; | |
function createDB(){ | |
var queryCreate = "CREATE TABLE IF NOT EXISTS diary ( \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var url = require('url'); | |
var proxy = require('proxy-middleware'); | |
var browserSync = require('browser-sync'); | |
// browser-sync task for starting the server. | |
gulp.task('browser-sync', function() { | |
var proxyOptions = url.parse('http://localhost:3000/secret-api'); | |
proxyOptions.route = '/api'; |