I've currently set this :
$scope.privates = [
{value:'Private'},
{value:'Public'}
];
And in my view I do this :
%h2 Etablissement
%div{"data-ng-repeat" => "private in privates"}
%input{"data-ng-model" => "filterPrivacy[private.value]",:type => "checkbox"}
{{private.value}}
And currently it renders this :
<h2>Etablissement</h2>
<div data-ng-repeat-start='private in privates'>
<input data-ng-model='filterPrivacy[private.value]' type='checkbox'>
</div>
the {{private.value}}
isn't showing up anywhere and I should have two inputs cause I've got two values.
What am I missing ?
Cordially, Rob
P.S : When I test {{privates}} it renders this to me
<div ng-repeat='private in privates'>
[{"value":"Private"},{"value":"Public"}]
</div>