I have two lists of IDs that I need to check against. If they match then that check-box should be checked. I'm new to angularJs so please help me with this. My code looks like this now. All Media is a object with many values. mediaIdFromSpecifikLead is just a list with int id.
<tr ng-repeat="media in allMedia">
<div ng-repeat="mediaFromLead in mediaIdFromSpecificLead">
<div ng-if="media.Id == mediaFromLead ">
<td>
<input type="checkbox" ng-checked="true" />
</td>
</div>
<div ng-if="media.Id != mediaFromLead ">
<td>
<input type="checkbox" ng-checked="false" />
</td>
</div>
</div>
</tr>
With this code it even shows TWO check-boxes (one checked and one empty) so not even that works so I have probably done this totally wrong.
EDIT: So I want only one check-box for each media-file. That check-box should be checked if my Lead is connected to that media-file, otherwise it should stay unchecked.