@IvoWetzel well, I'm new to angularjs, so it's a simple one :
I have a list of users from my API like : {username : 'yada', [...], validAuthor : true}
I have two buttons :
<button class="btn btn-default btn-xs" ng-click='validAuthorBtn(1)' ng-disabled="{{!sortvalid}}">All authors</button>
<button class="btn btn-default btn-xs" ng-click='validAuthorBtn(2)' ng-disabled="{{sortvalid}}">validated authors</button>
And in my controller I have :
$scope.sortValid = false;
$scope.validAuthorBtn = function (value) {