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
localDB.sync(remoteDB, options) | |
==> | |
options = { | |
batch_size : 1000, | |
live: live, | |
filter: 'app/appfilter', | |
retry : true, |
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
<ion-view title="Relation" cache-view="true" > | |
<div class="tabs tabs-top tabs-balanced has-subheader"> | |
<a class= "tab-item" ng-class="{'tab-item-active':slideIndex==0}" ng-click="changeSlide(0)"> | |
Echanges | |
</a> | |
<a class= "tab-item" ng-class="{'tab-item-active':slideIndex==1}" ng-click="changeSlide(1)"> | |
Infos | |
</a> | |
<!-- <a class= "tab-item" ng-class="{'tab-item-active':slideIndex==2}" ng-click="changeSlide(2)"> |
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
multiSave : function(json, type){ | |
console.info("multiSave", type); | |
json.map(function(obj,i){ | |
console.debug(obj, i); | |
obj._id = factory.db.rel.makeDocID({ "type": type, "id": i+1 }); | |
}); | |
factory.db.bulkDocs(json).then(function (result) { | |
console.debug("load ok", result); | |
// handle result | |
}).catch(function (err) { |
NewerOlder