According to the documentation and other SO questions, I should be able to output a set of key/value pairs with ng-repeat
$scope.getFilters = function(){
return {
film : true,
game : true,
music : true,
sport : true,
tv : true
}
}
$scope.filters = $scope.getFilters();
Then this is my HTML
{{filters}}
<div
ng-repeat="(name,set) in filters"
>
{{name}} : {{set}}
</div>
But this is all I get from that:
{"film":true,"game":true,"music":true,"sport":true,"tv":true}
<!-- ngRepeat: (name,set) in filters -->
I've tried JS fiddles, it works. This is only a snippet of my code, there is more on the page but I can't paste it all here.
UPDATE: Just noticed this error:
Error: Duplicates in a repeater are not allowed. Repeater: (name,set) in filters key: boolean:true