Implementing Chips Component and Validation within a Reactive Form. Angular doesn't provide standard array based form field validation. This example demonstrates adding custom validators to the chips array values within a Reactive Form. (See)[https://www.dev6.com/angular/angular-material-chips-with-reactive-forms-and-custom-validation/]
Run npm install
to install all the required dependencies
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.# angular8-reactive-forms