当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript Storage.remove方法代码示例

本文整理汇总了TypeScript中@ionic/storage.Storage.remove方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Storage.remove方法的具体用法?TypeScript Storage.remove怎么用?TypeScript Storage.remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在@ionic/storage.Storage的用法示例。


在下文中一共展示了Storage.remove方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: doLogout

 async doLogout() {
   this.menuCtrl.enable(false);
   try {
     await this.googlePlus.logout();
   } catch (e) {}
   await this.storage.remove(this.uds.STORAGE_USER);
   await this.storage.remove(this.uds.STORAGE_REFRESH_TOKEN);
   await this.storage.remove(this.uds.STORAGE_ACCESS_TOKEN);
   this.router.navigateByUrl("/login");
 }
开发者ID:strandls,项目名称:biodiv-mobile,代码行数:10,代码来源:logout.page.ts

示例2:

 data => {
   this.items = data;
   this.storage.remove('polls');
   if (refresher) {
     refresher.complete();
   }
 }
开发者ID:meumobi,项目名称:infomobi,代码行数:7,代码来源:items.ts

示例3: signout

	//登出
	signout(): void {
		var that = this;

		this.storage.remove('token').then(() => {
			that.navCtrl.setRoot(LoginPage);
		});
	}
开发者ID:qwb0920,项目名称:ionic-uuchat,代码行数:8,代码来源:setting.ts

示例4: resetDB

 resetDB(): void {
   this.storage.remove('storageLoaded').then(() => {
     this.itemsService.removeAll().then(() => {
       this.categoriesService.removeAll().then(() => {
         location.reload();
       });
     });
   });
 }
开发者ID:Ismaestro,项目名称:Packing-Up,代码行数:9,代码来源:preferences.component.ts

示例5: delete

  /**
   * Delete (async) a WaypointPath from the underlying storage
   */
  async delete(waypoints: WaypointPath):Promise<any> {
    if (typeof waypoints.id === 'undefined') {
      return;
    }

    let waypointsIds = await this.storage.get(SettingsKeys.WAYPOINTS);
    waypointsIds.splice(waypointsIds.indexOf(waypoints.id), 1);
    await this.storage.set(SettingsKeys.WAYPOINTS, waypointsIds);

    await this.storage.remove(waypoints.id);
  }
开发者ID:ianathompson,项目名称:eDO_ui,代码行数:14,代码来源:waypoints.service.ts

示例6:

                handler: data =>{
                  this.storage.remove("url").then(url =>{

                  }).then(() =>{
                    this.storage.set("url",data.url).then(() =>{

                    }, errorstorage =>{
                      console.log(errorstorage);
                    });
                  }, erroreeliminar =>{
                    console.log(erroreeliminar);
                  })
                }
开发者ID:EnriqueTun23,项目名称:pescaderia,代码行数:13,代码来源:home.ts

示例7: openPage

  openPage(pageName: string) {
    if (pageName == "signup") {
      this.navCtrl.push(SignupPage);
    }
    if (pageName == "login") {
      this.navCtrl.push(LoginPage);
    }
    if (pageName == 'logout') {
      this.storage.remove("userLoginInfo").then(() => {
        this.user = {};
        this.loggedIn = false;
      })
    }
    if (pageName == 'cart') {
      let modal = this.modalCtrl.create(CartPage);
      modal.present();
    }

  }
开发者ID:arvac,项目名称:woo,代码行数:19,代码来源:menu.ts

示例8: removeAll

 removeAll() {
   return this.storage.remove('items');
 }
开发者ID:Ismaestro,项目名称:Packing-Up,代码行数:3,代码来源:items.service.ts

示例9: remove

  public async remove(key: string) {
    await this.ready();

    return this.storage.remove(this.buildKey(key));
  }
开发者ID:Nodonisko,项目名称:ionic-cache,代码行数:5,代码来源:cache-storage.ts


注:本文中的@ionic/storage.Storage.remove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。