lundi 25 novembre 2019

check if a checkbox is checked in angular

I have a list of checkboxes, and there is a certain input text that I want to show only near a checkbox that is checked. In AngularJs it is very very simple. In angular it seems impossible. I saw this question with many answers, none of them worked! Can anyone give me a simple working solution?

Thanks, Osnat.

Here is my code:

<tr *ngFor="let eachService of services; let i = index">
     <td class="service-td" *ngIf="services[i]"><input type="checkbox">
          <span></span>
     </td>
     <input [hidden]="???" type="text" value="wl">
</tr>




Aucun commentaire:

Enregistrer un commentaire