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.