Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

update object single property of firebase database object in angular

//call it like this in .ts file
 this.service.editData('/order',{order_status:status},key)

//service function .service file
editData(tableName:string,object:any,key:any)
  {
    console.log('edit',object,key)
    return this.db.list(tableName).update(key,object)

  }
 
PREVIOUS NEXT
Tagged: #update #object #single #property #firebase #database #object #angular
ADD COMMENT
Topic
Name
2+5 =