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

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

Previously i had used ng-required for input control conditionally

$scope.IsRequired=true;

<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




Responses

(No response found.)

Login to post response