#13.23 - MCQ Form example using FormArray - Reactive Form

preview_player
Показать описание
Implement Multiple Choice Question (MCQ) form example using FormArray class available in Reactive Form.

00:00 - Example Walkthrough and Workspace Setup
02:56 - Structure of FormGroup class for MCQ form
06:24 - HTML Template for Question form element
08:40 - Spacing between Form Elements
09:55 - HTML for Answer Options
11:48 - Including formArrayName directive
14:48 - Link form elements using formGroupName and formControl directives
18:29 - Dynamically displaying answer options using ngFor and formGroupName directives
23:35 - Implementing Add Answer Option
27:02 - Method for FormGroup object creation
29:52 - Implementing Delete Answer Option
31:59 - Access FormControl in FormArray for validation
Рекомендации по теме
Комментарии
Автор

how can we access a particular formcontrol which was in 3rd element of a formarray in both html and ts files like i want to print the value of option formcontrol in 3rd element of formarray in html file. in the above we are able to access values as group but i want a single formcontrol value form random index number of formarray

baburaomcl