I have an input field which could be enabled or disabled depending on the condition. Its corresponding label has '*' to indicate that the input field is mandatory. Currently the '*' is displayed all the time which should only be displayed when the input field is editable.
<label>Field Label *</label>
<input ng-model="someObject.value" ng-if="!someObject.allowEdit" ng-readonly="true"/>
I am trying to add condition that if the input field is readonly then don't show '*', for that, I am doing something as below but I don't know how to check the input field's readonly property with angularJS.
<label>Field Label
<div style="display:inline" ng-show="[if inupt field.readonly == false]">*</div>
</label>
<input ng-model="someObject.value" ng-if="!someObject.allowEdit" ng-readonly="true"/>