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

Add form custom validators in mat-form #15665

Open
webdevlapani opened this issue Mar 30, 2019 · 3 comments
Open

Add form custom validators in mat-form #15665

webdevlapani opened this issue Mar 30, 2019 · 3 comments
Labels
area: material/form-field feature This issue represents a new feature or feature request rather than a bug or bug fix P4 A relatively minor issue that is not relevant to core functions

Comments

@webdevlapani
Copy link

Please describe the feature you would like to request.

We need to add custom validators which useful for form validation. If Angular Material will provide inbuilt validator then people save their time

What is the use-case or motivation for this proposal?

We need to create common validators such as #

  • rangeLength
  • min
  • gt
  • gte
  • max
  • lt
  • lte
  • range
  • digits
  • number
  • url
  • email
  • date
  • minDate
  • maxDate
  • dateISO
  • creditCard

Is there anything else we should know?

Please see this example
https://stackblitz.com/edit/angular-material2-issue-he4gh8

What i want to made this is in example. If Community is aggree then i will ready for do this

@webdevlapani webdevlapani changed the title Add form validators in mat-form Add form custom validators in mat-form Mar 30, 2019
@andrewseguin andrewseguin added feature This issue represents a new feature or feature request rather than a bug or bug fix P4 A relatively minor issue that is not relevant to core functions labels May 6, 2019
@adgoncal
Copy link
Contributor

This is not Material specific. I think it would be more appropriate as part of @angular/forms instead. In fact, some of those are already provided in Angular's validators.
https://angular.io/api/forms/Validators

@angular-robot
Copy link
Contributor

angular-robot bot commented Feb 21, 2022

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

@angular-robot
Copy link
Contributor

angular-robot bot commented Mar 13, 2022

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/form-field feature This issue represents a new feature or feature request rather than a bug or bug fix P4 A relatively minor issue that is not relevant to core functions
Projects
None yet
Development

No branches or pull requests

3 participants