本文整理汇总了TypeScript中angularfire2/firestore.AngularFirestoreDocument.delete方法的典型用法代码示例。如果您正苦于以下问题:TypeScript AngularFirestoreDocument.delete方法的具体用法?TypeScript AngularFirestoreDocument.delete怎么用?TypeScript AngularFirestoreDocument.delete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类angularfire2/firestore.AngularFirestoreDocument
的用法示例。
在下文中一共展示了AngularFirestoreDocument.delete方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: deleteInventoryItem
deleteInventoryItem(inventoryItem: InventoryItem){
this.inventoryItemDoc = this.afs.doc(`inventory_items/${inventoryItem.id}`);
this.inventoryItemDoc.delete();
}
示例2: deletePayment
deletePayment(payment: Payment){
this.paymentDoc = this.afs.doc(`payments/${payment.id}`);
this.paymentDoc.delete();
}
示例3: deleteClient
deleteClient(client: Client){
this.clientDoc = this.afs.doc(`clients/${client.id}`);
this.clientDoc.delete();
}
示例4: deleteCustomer
deleteCustomer(customer: Customer){
this.customerDoc = this.afs.doc(`customers/${customer.id}`);
this.customerDoc.delete();
}
示例5: deleteOrder
deleteOrder(order: Order){
this.orderDoc = this.afs.doc(`orders/${order.id}`);
this.orderDoc.delete();
}