This project was generated with Angular CLI version 12.0.4.
Create a dynamic form using the Reactive forms of Angular
-
Title(Dropdown) with at least 3 options like Mr., Mrs., Miss
-
Name(text) should accept only alphanumeric
-
Birthdate(Calendar) should be greater than 18 years
Notes:
A. All fields are required.
B. When the user clicks on the Add button, the New group should be appended at the bottom with all the above 3 controls.
C. Add Button should be visible only on the last group
D. Users should be allowed to add up to N number of groups.
E. When the user clicks on the delete button, only that group data should be deleted.
F. Each group’s control should show a proper validation message below the control
G. Submit button should be visible only on the last group and should be enabled only if there are no errors in any group.
H. When the user clicks on submit button, Show All the group data in JSON format at the bottom
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.