Food Delivery App 9 - Firebase CRUD Operations with AngularFire Library

 

 Image for post 

Firebase CRUD operations for Object
Create an object binding/ Retrieve
Create
Update
Delete
List of Objects
Create a list binding/ Retrieve

– Returns an Observable of data as a synchronized array of JSON objects without snapshot metadata. It is simple to render to a view:

– Returns an Observable of data as a synchronized array of AngularFireAction<DatabaseSnapshot>[] with metadata (the underyling DatabaseReference and snapshot key):

Create
Update
Delete

// db: AngularFireDatabase
const itemsRef = db.list('items');
itemsRef.remove('key');
 
// delete entire list
itemsRef.remove();

Comments

Popular posts from this blog

Flutter: Exploring more widgets

Flutter: Everything is a widget

Food Delivery App 5 - Firebase Storage for Profile Picture