You can add ng-if="rpFilter.ResourcePlanID.value"
to the image tag
.
This will make that image visible only if you enter the value in textbox.
<th style="width:90px">
<span>ID</span>
<img ng-if="rpFilter.ResourcePlanID.value" class="serverRP_ajax-loader" src="loader_green_32.gif" />
<input type="text" id="abc" ng-model="rpFilter.ResourcePlanID.value" />
</th>
Here is a working EXAMPLE
Note: If you want to just check whether field is modified or not, then you need to use $dirty
and for that you have to definitely take formtag
Here is how it goes,
You should use name of attribute,
ng-if="myForm.resourceplanid.$dirty"
<form name="myForm">
<th style="width:90px">
<span>ID</span>
<img ng-if="myForm.resourceplanid.$dirty" class="serverRP_ajax-loader" src="loader_green_32.gif" />
<input type="text" name="resourceplanid" id="abc" ng-model="rpFilter.ResourcePlanID.value" />
</th>
</form>