I've used the following solution (accepted answer) to create a new directive for my list of checkboxes: How can I get angular.js checkboxes with select/unselect all functionality and indeterminate values? and I want to show the following buttons block when at least one item is selected:
<div class="btn-group pull-right mrr5" data-ng-show="masterChecked">
<button class="btn btn-danger"><i class="icon-trash"></i> Remove selected</button>
<button class="btn btn-info"><i class="icon-download icon-white"></i> Export selected as .csv</button>
</div>
As you can see I'm using the 'data-ng-show' attribute with the 'masterChecked' assigned to it, which is set within the controller of the directive based on the status of the 'master':
<input type="checkbox" data-ng-model="master" data-ng-change="masterChange()">
but for some reason whether I check it or not - the buttons do not show up. Any idea what I might be doing wrong?
Here's the fiddle : http://jsfiddle.net/scabro/Ahe2X/10/