How to use ng-required in ng-messages in AngularJS

Posted by Kasani007 under AngularJS 1x on 9/6/2017 | Points: 10 | Views : 1536 | Status : [Member] | Replies : 0
How can we get required validation conditionally in ng-messages

Previously i had used ng-required for input control conditionally


<input type="text" name="empname" ng-model="EmpName" ng-required="IsRequired" />

the above is without using ng-messages,

i need to use ng-messages, then how can i use ng-required conditionally.

please help me... thanks in advance


(No response found.)

Login to post response