I am working on a AngularJS web application and sometimes I need to check if the element inside the ng-if or ng-show directive is inside a list. I'm doing this now:
<div ng-if="object.element=='A' || object.element=='B' || object.element=='C'">
<p>Hello World!</p>
</div>
I was wondering if there is a way to do something like this:
<div ng-if="object.element in ['A','B','C']">
<p>Hello World!</p>
</div>