當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript FirebaseListObservable.update方法代碼示例

本文整理匯總了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 });
   }
 }
開發者ID:iacapuca,項目名稱:mausmotoristas,代碼行數:7,代碼來源:historico.ts

示例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 });
   }
 }
開發者ID:joaorobertoifrn,項目名稱:ionicfirebaseauth,代碼行數:7,代碼來源:contact-service.ts

示例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});
     
   }
開發者ID:ardabozok,項目名稱:Project,代碼行數:8,代碼來源:component.edit.ts

示例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;
   }
 }
開發者ID:TimGoonan,項目名稱:Slipslo,代碼行數:11,代碼來源:longtermvote.component.ts

示例5: updateItem

 //TODO
 updateItem(key: string, newText: string) {
   this.items.update(key, { text: newText });
 }
開發者ID:ng-classroom,項目名稱:demoapp11,代碼行數:4,代碼來源:home-page.component.ts

示例6: updateTodo

 updateTodo(key, newText) {
   this.items.update(key, { text: newText });
 }
開發者ID:costaivo,項目名稱:AngularJs2-AdManager,代碼行數:3,代碼來源:todo.service.ts

示例7: updateTableData

 updateTableData(key: string, allData: Table) {
   this.tablesDB.update(key, { data: allData.data, count: allData.count });
 }
開發者ID:SimonFolger,項目名稱:angular-card-table,代碼行數:3,代碼來源:app.component.ts

示例8: updateTableName

 updateTableName(key: string, name: string) {
   this.tablesDB.update(key, { name: name });
 }
開發者ID:SimonFolger,項目名稱:angular-card-table,代碼行數:3,代碼來源:app.component.ts


注:本文中的angularfire2/database.FirebaseListObservable.update方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。