If I have an array and json like this. I have omitted a bunch of content which is not needed to explain this.
$scope.socialTypes = ["facebook", "pintrest", "twitter", "linkedin"];
$scope.socialJson = [{"type": "facebook"}, {"type": "twitter"}]
and I have html like this
<span class="btn btn-lg btn-squared" ng-repeat="(socialTypeKey, socialTypeValue) in socialTypes">
<span ng-repeat="socialData in socialJson">
<a ng-if="socialData.type == socialTypeKey && socialData.golden && socialData.active" class="{{socialTypeValue.aclass}}"><i class="{{socialTypeValue.iclass}}"></i></a>
<i ng-if="socialData.type == socialTypeKey && socialData.golden && !socialData.active" class="{{socialTypeValue.iclass}}"></i>
<i ng-hide="!inArray(socialTypeKey, socialJson)" class="{{socialTypeValue.iclass}}"></i>
</span>
</span>
Ignore the golden, active, and classes here. What I am wondering is, I need the 3rd element to display whenever the social type is not in the socialJson variable. So basically the first two ng-ifs would display if the social is in both, and the third will display if its not in the array like I mocked up