Skip to content

Instantly share code, notes, and snippets.

@deepal
Created April 2, 2017 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save deepal/1795eceaee9557ca2827ccd993b5e703 to your computer and use it in GitHub Desktop.
Save deepal/1795eceaee9557ca2827ccd993b5e703 to your computer and use it in GitHub Desktop.
model.$formatters.unshift(function (modelValue) {
setValidity(validateName(modelValue));
return modelValue;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment