I'm trying to create a button based filter, but as soon as I attach the filter to ng-repeat it does not work anymore (NOTE, the objects that need to be filtered are in another ng-repeat).
<!-- This works -->
<div ng-click="myFilter = {name: 'Test'}">button</div>
<!-- This does not work -->
<span ng-repeat="(key, button) in gl_categories">
<div ng-click="myFilter = {name: 'Test'}">{{button}}</div>
</span>