I have an input tag..
<form name="patientSearchForm">
<input name="text" id="textType" type="text" class="form-control" />
<button type="submit">Submit Form</button><br /><br />
</form>
How to display the message that input field cant be empty using ng-if.
I am using
<span style="color:Red" ng-if="!textType.value" ng-show="patientSearchForm.$submitted"> My message </span>
But it is not working . Please help.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…