第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何刪除一個值

如何刪除一個值

C#
胡子哥哥 2023-09-24 10:48:16
我想在刪除之前顯示值的名稱。不知道如何以角度進行數(shù)據(jù)綁定。1.Angular html。    <div *ngIf="pnlItemType" class="col-12">    <table class="table table-bordered table-hover">        <thead class="thead-dark">            <th scope="col">Item Type Name</th>            <th scope="col" colspan="2"></th>        </thead>        <tbody class="bg-white">            <tr *ngFor="let itemType of itemTypes">                <td class="valign-middle">{{itemType.ItemTypeName}}</td>                <td class="w-80 text-center">                    <button type="button" class="btn btn-outline-primary"         title="Edit" (click)="editItemType(itemType)"><i class="fas fa-           pen"></i></button>                </td>                <td class="w-80 text-center">                    <button type="button" class="btn btn-outline-            secondary" title="Delete" (click)="deleteItemType()"> <i           class="far fa-trash-alt"></i></button>                </td>            </tr>               </tbody>                 </table>                    /div>2.刪除框的模態(tài)視圖。<ng-template #mdlDeleteItemType><div class="modal-header">    <h4 class="modal-title"> Confirm to delete this item</h4>    <button type="button" class="close" aria-label="Close" (click) =  "hideModal();">      <span aria-hidden="true">&times;</span>    </button></div><div class="modal-body">    <span> Are you sure you want to delete this item? </span>    <b>{{itemType?.ItemTypeName}}</b></div><div class="modal-footer">    <button type="button" class="btn btn-outline-secondary">     Delete</button>    <button type="button" class="btn btn-outline-secondary mg-rt-10"       (click)="hideModal()">Cancel</button> </div>       </ng-template>3.tsfile 后面的代碼。 deleteItemType(){  this.hideModal();  this.openLargeModal(this.mdlDeleteItemType);}我想以粗體顯示要刪除的項目的名稱。
查看完整描述

1 回答

?
夢里花落0921

TA貢獻1772條經(jīng)驗 獲得超6個贊

deleteItemType(itemType){

  this.mdlDeleteItemType = itemType;

  this.hideModal();

 //Just Open Modal after it

}

還有你的 HTML


(click)="deleteItemType(itemType)"


查看完整回答
反對 回復(fù) 2023-09-24
  • 1 回答
  • 0 關(guān)注
  • 103 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號