AngularJS - change scope value when its key is true within another scope
<p>I have a ng-repeat like this </p>

<pre><code>&lt;li ng-repeat="car in cars"&gt;
  &lt;p&gt;{{car.model}}&lt;/p&gt;
  &lt;span ng-show="car.check"&gt;&lt;/span&gt;
  &lt;span ng-show="!car.check"&gt;X&lt;/span&gt;
&lt;/li&gt;
</code></pre>

<p>based on this <code>$scope.cars</code></p>

<pre><code>$scope.cars=[
    {'model':'Ford','check':true},
    {'model':'Honda','check':true},
    {'model':'Ferrari','check':true}
];
</code></pre>

<p>So when <code>check</code> is <code>true</code>, it is displayed a , and when it is false, a X</p>

<p>I have another <code>$scope.filter</code> (that I use for another purposes, but for the shake of simplicity I will just write its content)</p>

<pre><code>$scope.filter = {
  "producers": {
    "Ford": true,
    "Honda": true,
    "Ferrari": false
    }
}
</code></pre>

<p>What I would like is whenever I change the <code>$scope.filter</code> values, that change would be reflected in the <code>$scope.cars</code> (so in this example, if <code>filter.producers.Ferrari:false</code>, the corresponding element in <code>$scope.cars</code>would automatically change as well to <code>'check':false</code></p>

<p>You can check the <a href="http://jsfiddle.net/vq6f8002/" rel="nofollow noreferrer">jsfiddle here</a> Thanks in advance!</p>

<p>Edit: as RipTheJacker says, the question is about how to make a function that updates the cars checked value based on the filter values.</p>