本文整理匯總了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();
}