小编Giu*_*aci的帖子

PouchDB 中最大实时复制数量

我正在开发一个带有 PouchDB 的 Ionic 应用程序,需要将表与远程 CouchDB 服务器同步。在我的database.ts提供者的构造函数中,我有6个方法:

this.initialiseDB_Ord();
this.initialiseDB_IngProd();
this.initialiseDB_Ing();
this.initialiseDB_Prod();
this.initialiseDB_OrdProd();
this.initialiseDB_Ut();
Run Code Online (Sandbox Code Playgroud)

这些方法中的每一个都执行以下操作(我选择第一个作为示例):

this._DB_Ord = new PouchDB('orders');
this._remoteDB_Ord = this.addressIP + '/orders';
this._syncOpts_Ord = {  live : true,
                        retry : true,
                        continuous : true};
this._DB_Ord.sync(this._remoteDB_Ord, this._syncOpts_Ord)
.on('change',(info) => {
     console.log('Handling syncing change');
     console.dir(info);
}).on('paused',(info)=> {
     console.log('Handling syncing pause');
     console.dir(info);
}).on('active', (info) => {
     console.log('Handling syncing resumption');
     console.dir(info);
}).on('denied', (err) =>{
     console.log('Handling syncing denied');
     console.dir(err);
}).on('complete', (info) =>{
     console.log('Handling syncing complete');
     console.dir(info);
}).on('error', (err)=>{
     console.log('Handling syncing error');
     console.dir(err);
});
Run Code Online (Sandbox Code Playgroud)

然后我有一个handleSyncing方法,如下所示: …

pouchdb ionic-framework

6
推荐指数
1
解决办法
1012
查看次数

在浏览器中为Ionic应用设置标题

我正在开发一个Ionic应用程序,该应用程序也将在浏览器中作为Web应用程序运行。

在html中,我有以下代码:

<ion-header>
  <ion-navbar>
    <ion-title>Login</ion-title>
  </ion-navbar>
</ion-header>
Run Code Online (Sandbox Code Playgroud)

我认为ion-title标签足以更改浏览器选项卡上的标题,但似乎并非如此。它仍然是“ Ionic App”。我该如何更改?

谢谢

html browser ionic-framework

3
推荐指数
1
解决办法
979
查看次数

标签 统计

ionic-framework ×2

browser ×1

html ×1

pouchdb ×1