Is it possible to evaluate an angular expression in a ng-if?
For instance:
<div ng-if="itemData.contentTypeId = {{$root.res('resources', article_type_id')}}">
<!-- some content -->
<div>
also tried surrounding the expression in single quotes:
<div ng-if="itemData.contentTypeId = '{{$root.res('resources', article_type_id')}}'">
<!-- some content -->
<div>
and neither worked as expected.
Is this an issue with syntax or is this not possible? If this is a syntax issue, how should the statement above be written?
==instead of=?