I need to validate a form field for both null and its value. Can anyone suggest how I can achieve this without writing a function on the controller?
<form name="frm">
<input type="text" ng-model="myModel" ng-required="myModel != '' || myModel != undefined || myModel != 'xxx'" />
<button ng-disabled="frm.$invalid" >Send</button>