スパン(アクティブ)をクリックした後にドロップダウンを表示し、特定の値を選択した後にドロップダウンを非表示にして、個別にスパンします。それを達成する方法?角度2のngFor内の個々のアイテムを非表示/表示する
<table class="table">
<tbody>
<tr *ngFor="let user of data | paginate: config; let i">
<td class="row">
<a [routerLink]="['/user-edit', user.Id]" style="text-transform: capitalize;">{{user.FirstName}} {{user.LastName}}</a><br />
{{user.Email}}<br />
<i class="fa fa-user"></i> Developer
</td>
<td style="width:15px;" *ngIf="user.IsActive==false"><br /><br /><b>Blocked</b></td>
<td *ngIf="user.IsActive==true">
<div class="inline-edit">
<span [hidden]="!isDisplay" (click)="beginEdit(editText,i)">
Active
</span>
<span>
<ng-select [items]="items"
(selected)="selected($event,i)">
</ng-select>
</span>
</div>
</td>
</tr>
</tbody>
</table>
https://stackoverflow.com/questions/36873900/hide-show-individual-items-inside-ngfor –
、多分あなたはそれを変更する必要がある、にBeginEditが何をするか、わかりませんはい、完璧な解決策はありません。 –
[ngForの中の個々のアイテムを表示/非表示](https://stackoverflow.com/questions/36873900/hide-show-individual-items-inside-ngfor) –