This expands the deprecation message that started to pop up in v11.0.3 after the landing of commit e148382bd0c6ba5c442fd6fa8c95f957205b5d01, that deprecated the `{[key: string]: any}` type for the options property of the `FormBuilder.group` method. It turns out that having a custom validator declared as `{ validators: (group: FormGroup) => ValidationErrors|null }` works in practice, but is now inferred by TS as the deprecated version of `group` (because `FormGroup` is a subclass of `AbstractControl` that `ValidatorFn` expects). We considered the possibility of tweaking the forms API to accept such validators, but it turns out to generate too many changes in the framework or possible breaking changes for Angular users. We settled for a more explicit deprecation message, elaborated with the help of @petebacondarwin. This will hopefully help developers to understand why the deprecation warning is showing up when they think they are already using the non-deprecated overload. PR Close #39946
Angular - One framework. Mobile & desktop.
Angular is a development platform for building mobile and desktop web applications
using Typescript/JavaScript and other languages.
Contributing Guidelines
·
Submit an Issue
·
Blog
Documentation
Get started with Angular, learn the fundamentals and explore advanced topics on our documentation website.
Advanced
Development Setup
Prerequisites
- Install Node.js which includes Node Package Manager
Setting Up a Project
Install the Angular CLI globally:
npm install -g @angular/cli
Create workspace:
ng new [PROJECT NAME]
Run the application:
cd [PROJECT NAME]
ng serve
Quickstart
Ecosystem
Changelog
Learn about the latest improvements.
Upgrading
Check out our upgrade guide to find out the best way to upgrade your project.
Contributing
Contributing Guidelines
Read through our contributing guidelines to learn about our submission process, coding rules and more.
Want to Help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Code of Conduct
Help us keep Angular open and inclusive. Please read and follow our Code of Conduct.
Community
Join the conversation and help the community.
Love Angular? Give our repo a star ⭐ ⬆️.