jeudi 2 juin 2016

Check the checkbox by default

My code :

<label ng-class="[getClasscolor(0)]"><input class="opened" ng-checked="getStatut(data.statut_cas_id_statut1, 0)" ng-model="data.statut_cas_id_statut1" value="0" type="checkbox">&nbsp;Open&nbsp;</label>

I would check this checkbox by default and call the function getStatut by default. How can I do that ? I'm starting with angularjs




Aucun commentaire:

Enregistrer un commentaire