Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to make field not required #26

Open
rickyk586 opened this issue Mar 6, 2017 · 2 comments
Open

No way to make field not required #26

rickyk586 opened this issue Mar 6, 2017 · 2 comments

Comments

@rickyk586
Copy link

not much more to say other than the title of the issue...

@bcherny
Copy link
Owner

bcherny commented Mar 6, 2017

PRs are welcome! You might want to start by looking at the$validators array.

@Phr33d0m
Copy link

Phr33d0m commented May 7, 2017

Hello, I'm sure someone else will end up here as I did looking for a way to disable this behaviour, as a workaround (before a fix/option is pushed up) you can do something like this:

ngModel.$validators.currency = function (modelValue) {
  return true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants