mardi 24 octobre 2017

Checkbox value is not updating?

Here is one problem . When i check all ,all check boxes are set true but if some of record , i dis select the all check box should be unchecked .Its working in plunker but not in my workspace any reason ? Here is plunker url http://ift.tt/2y2HP1M

            <div class="row">                                 
            <div class="col-md-4 col-sm-4 col-xs-4">
          <label>
            <input type="checkbox" ng-click="isAllRecordSelected()"
                    ngmodel="isAllSelectedForSMS">All
          </label>
    </div>

    <div class="col-md-4 col-sm-4 col-xs-4"> Mobile</div>
    <div class="col-md-2 col-sm-2 col-xs-2">Name</div>
  </div>
  <div class ="row"
  ng-repeat="friend in friends">

    <div class="col-md-4 col-sm-4 col-xs-4">
      <label> <input type="checkbox" 
         ng-model="friend.selected"
        ng-change="userSelectedToggle()">
      </label>
    </div>
     <div class="col-md-4 col-sm-4 col-xs-4"> </div>
     <div class="col-md-2 col-sm-2 col-xs-2"></div>
  </div>




Aucun commentaire:

Enregistrer un commentaire