In Oracle database there is such parameter "active" with data type "VARCHAR2 (1 byte)". The values of Y and N are used there. I want to make the checkbox active if Y is on and not active N.
I wanted to do so but checkbox everywhere is active:
<table class="table table-hover">
<thead>
<tr>
<th [class.active]="key === 'name'" (click)="setOrder('name')"><b>Name <span [hidden]="reverse">▼</span><span [hidden]="!reverse">▲</span></b></th>
<th style="text-align: center;" [class.active]="key === 'active'" (click)="setOrder('active')"><b>File <span [hidden]="reverse">▼</span><span [hidden]="!reverse">▲</span> </b></th>
</tr>
</thead>
<tbody>
<tr *ngFor="let project of projects | orderBy: key:reverse | let projectIndex = index" >
<td >{{project.name}}</td>
<td style="text-align: center">
<input type="checkbox" [checked]="project.active == 'Y'" class="material_checkbox" [(ngModel)]="project.active" name="active_{{projectIndex}}" disabled />
</td>
</tr>
</tbody>
</table>
How can I set a condition so that if there was a Y then the checkbox is active and if N then inactive?
value="{{project.active}}"ngFor.