0
我在Angular中有一個彈出窗口,它用於刪除確認。如何將對象傳遞給彈出窗口<div>
。對象範圍如何在指令外角度工作
示例代碼:
<tr *ngFor="let **user** of users">
<td style="text-align: -webkit-center;">
<button (click)="showDeleteConfirm()">
<span class="glyphicon glyphicon-trash"></span>Delete
</button>
</td>
</tr>
需要上述用戶在這裏通過:
<div class="popupDelete">
<popup #popupDelete (confirmClick)="ConfirmDelete(**user**)">
Are you sure, you want to delete this user?
<br>
</popup>
</div>
謝謝...... !!!它解決了。 :-) – Tinku