I've been racking my brain trying to figure out why the 'ng-if' isn't functioning on this element. I understand that ng-if="true" might seem odd, but I just want to make it clear that the issue lies elsewhere. What am I missing?
<div ng-init="model.class = $parent.model.setClass.next().value" class="soldier" ng-class="{ '{{model.class}}':true }" ng-if="true">
</div>
Check out this example: https://jsfiddle.net/z38me4fq/
If you remove the 'ng-if', you'll see the directive appear