Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul>
- <li ng-repeat='shoe in shoebox'>
- <input type='checkbox' ng-model='shoe.selected' id='shoe-{{shoe.name}}'>
- <label for='shoe-{{shoe.name}}'>{{shoe.name}}</label>
- </li>
- <button ng-click='whatIsChecked(shoe.selected)'>Apply</button>
- </ul>
- $scope.whatIsChecked = function(selectedThing) {
- console.log(selectedThing);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement