An angular directive for doing one-off custom validation.
Under the hood this directive uses the validator API introduced in angular 1.3. See NgModelController's $validators and $asyncValidators properties:
validate.json your page after
dbrans.validateas a dependency of your app.
You need to pick an odd number.
Choose a unique username:Sorry, that username is taken.