I have the following code:
$scope.a = true;
$scope.b = true;
$scope.c = true;
$scope.myData = [{att: 'a'},{att: 'b'},{att:'c'} ]
What is the best way to filter out all objects that match the criteria above?
For example, right now I want all objects.
However if $scope.a = false, I want to output only the 2nd and 3rd objects.