For example, I want to show the element if $scope.test === 'hi"
. How do I achieve this?
I tried this:
<div ng-if = " {{test}} == 'hi' ? true : false ">
Show this if $scope.test is equal to 'hi'
</div>
Example here doesn't seem to work. My fail plunker.