If I understand correctly, you want to check the value and then display it in uppercase somewhere (?) So that it gets: ng-if will just check the value. If it is a βtestβ, it will display it as a capital letter.
<div ng-controller="MyCtrl"> <p class="red-color" ng-if="item.IsValue == 'test'">{{item.IsValue | uppercase}}</p> <input ng-model="item.IsValue" type="text"> </div>
Js
function MyCtrl($scope) { $scope.item = {IsValue: 'UpPerCASE'}; }
demo
string comparison is case-sensitive, so if you want to convert it and then compare, you must enter a string. toUppeCcase () or use the angular method
alou source share