mercredi 28 mars 2018

checkbox should be always checked

I have a checkbox and I want to be checked always and it must be unchecked only if we wish to.

here is the html

<input type="checkbox" 
    class="custom-control-input" 
    [(ngModel)]="productDetails.iscanRetrunable" 
    name="iscanRetrunable" checked>

Is it because I'm binding some value to it ?




Aucun commentaire:

Enregistrer un commentaire