本文整理匯總了TypeScript中angularfire2/database.FirebaseListObservable.update方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript FirebaseListObservable.update方法的具體用法?TypeScript FirebaseListObservable.update怎麽用?TypeScript FirebaseListObservable.update使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類angularfire2/database.FirebaseListObservable
的用法示例。
在下文中一共展示了FirebaseListObservable.update方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1:
handler: data => {
if (isNew) {
this.ListaPlaca.push({ 'placa': data.placa, 'tipo' : data.tipo });
} else {
this.ListaPlaca.update(placa, { placa: data.placa });
}
}
示例2: save
private save(item: any) {
if (item.$key) {
return this.items.update(item.$key, { name: item.name });
} else {
return this.items.push({ name: item.name, url: item.url, fullPath: item.fullPath });
}
}
示例3: updateItem
updateItem() {
console.log(this.Form.value.baslik);
this.items.update(this.id, {baslik: this.Form.value.baslik,
yazi: this.Form.value.yazi,
img: this.Form.value.img,
yazar: this.Form.value.yazar});
}
示例4: incrementVoteValue
incrementVoteValue(result:Submit){
if(result == null){
console.log("Error");
this.nothingChecked = true;
}
else{
result.vote = result.vote + 1;
this.items.update(result.$key, result);
this.nothingChecked = false;
}
}
示例5: updateItem
//TODO
updateItem(key: string, newText: string) {
this.items.update(key, { text: newText });
}
示例6: updateTodo
updateTodo(key, newText) {
this.items.update(key, { text: newText });
}
示例7: updateTableData
updateTableData(key: string, allData: Table) {
this.tablesDB.update(key, { data: allData.data, count: allData.count });
}
示例8: updateTableName
updateTableName(key: string, name: string) {
this.tablesDB.update(key, { name: name });
}