dimanche 26 juillet 2015

Check checkboxes created by ng-repeat

I have different checkboxes but all created by 'ng-repeat', i want to display a window everytime i check one of the checkbox. here is my code so far

HTML:

    <div class="" data-ng-controller="MylocationsController">
      <table class="table table-hover">
      <tbody ng-repeat="location in mylocations">
        <tr ng-mouseover="display(location._id)" ng-mouseleave="hide(location._id)">
        <td>
          <input type="checkbox" ng-click="editNotificationPreferences(location._id)" />
        </td>
       </tr>
       </tbody>
    </table>
    </div>

can someone help me to create a function for this in my controller?




Aucun commentaire:

Enregistrer un commentaire