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


TypeScript AngularFirestoreDocument.update方法代码示例

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


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

示例1: updateInventoryItem

 updateInventoryItem(inventoryItem: InventoryItem){
   this.inventoryItemDoc = this.afs.doc(`inventory_items/${inventoryItem.id}`);
   this.inventoryItemDoc.update(inventoryItem);
 }
开发者ID:juan8831,项目名称:ultimate-restaurant,代码行数:4,代码来源:inventory.service.ts

示例2: updatePayment

updatePayment(payment: Payment){
  this.paymentDoc = this.afs.doc(`payments/${payment.id}`);
  this.paymentDoc.update(payment);
}
开发者ID:juan8831,项目名称:ultimate-restaurant,代码行数:4,代码来源:payment.service.ts

示例3: updateClient

 updateClient(client: Client){
   this.clientDoc = this.afs.doc(`clients/${client.id}`);
   this.clientDoc.update(client);
 }
开发者ID:juan8831,项目名称:ultimate-restaurant,代码行数:4,代码来源:client.service.ts

示例4: updateCustomer

 updateCustomer(customer: Customer){
   this.customerDoc = this.afs.doc(`customers/${customer.id}`);
   this.customerDoc.update(customer);
 }
开发者ID:juan8831,项目名称:ultimate-restaurant,代码行数:4,代码来源:customer.service.ts

示例5: updateOrder

updateOrder(order: Order){
  this.orderDoc = this.afs.doc(`orders/${order.id}`);
  this.orderDoc.update(order);
}
开发者ID:juan8831,项目名称:ultimate-restaurant,代码行数:4,代码来源:order.service.ts


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