Issue creation and updates
We make use of ReactiveFormsModule
to build the form for adding and updating an issue. The IssueAddComponent
is loaded when the route changes to the /issues/create
URL. During the initialization of the component, the list of users is fetched for whom an issue can be assigned. The form presents a label and description that needs to be filled mandatorily, along with the selected user from the dropdown for assigning the issue. For simplicity and understanding, the add and edit forms are kept mostly the same, the only difference being that the IssueEditComponent
form allows for deleting an existing issue as well:

IMS app issue add components reactive form with debug information
Reactive forms
Here's how we construct our reactive form for the issue. The following code snippet is the same for IssueAddComponent
and IssueEditComponent
, which is used to build the form group for an issue:
//Within the class body users: User[]; // drop down list of users public issueForm: FormGroup...