title: AngularJS bind ng-valid with function
body: <p>Hi i would like to setValidity of input using an expression, but not a regEx, something like this</p>
  
  <pre><code>&lt;input ng-model="number" required ng-valid="number / 2 &gt; 14"&gt;
  </code></pre>
  
  <p>Is it possible i have complex function and i don't know how to convert it into regEx so i would like to use something like this. I try to use this library: <a href="https://github.com/turinggroup/angular-validator" rel="nofollow noreferrer">https://github.com/turinggroup/angular-validator</a> but it doesn't work at all :/</p>