Ramco Ramco

Ramco Ramco

  • 443
  • 3.4k
  • 526.4k

Display Data in Html on basis of condition

Jul 18 2024 4:29 AM

Hi

  I have below code in Html . I am using Angular 17. I want if ischildadopted = true then it should be displayed else not.

class="fa fa-check-circle me-1"></i>Child adopted

<div class="d-inline-block">
    <div class="label bg-green rounded-pill m-1 col-auto"><i class="fa fa-check-circle me-1"></i>Security issue</div>
    <div class="label bg-green rounded-pill m-1 col-auto"><i *ngIf="record.isChildAdopted" ? class="fa fa-check-circle me-1"></i>Child adopted : display:"none"</div>
"label bg-green rounded-pill m-1 col-auto"><i class="fa fa-check-circle me-1"></i>NIOS</div>
</div>

Thanks


Answers (3)