angular-ui/angular-ui — pull request #132 by pkozlowski-opensource (2012-08-04 10:32:41+00:00)
Title: Ui validate directive

As discussed on the mailing list this is the first implementation of uiValidate directive (with tests). For now it just supports one validator function and has validation key fixed as 'validator'. There are many extensions possible, notably:
* supporting custom validation keys, 2 syntax proposal below:
* `ui-validate='myFunction as validationKey'`
* making it possible for validator functions to return objects like: `{validationKey:true}`
* supporting many validation functions, 2 syntax proposal below:
* `ui-validate='{validationFunction1 : validationKey1, validationFunction2 : validationKey2}'
* having one validator function as input but making it possible to return many validation results like `{validationKey1:true, validationKey2:false}`
* supporting any expression as a validator function: `ui-validate='myFunction($value)'`