mercredi 22 juillet 2015

How to uncheck on load and toggle check in two checkbox angularjs

I want to uncheck the two checkbox on startup, and allow user to select only one check box at a time. Can I do it only using from ng-... attribute?

I am trying the following code

            <div style="border:1px solid">
                <label><input type="checkbox" ng-checked="!Titleshine_check" ng-model="blink_check">Blink</label>
                &nbsp;&nbsp;(OR)&nbsp;&nbsp;
                <label><input type="checkbox" ng-checked="!blink_check" ng-model="Titleshine_check">Shine</label>
                <br>
            </div>

http://ift.tt/1HQEFML




Aucun commentaire:

Enregistrer un commentaire