Resolving an issue
The main idea behind having an issue tracking system is that an issue should be resolved at some point. We will create a user workflow in our application to accomplish such a task. We will be able to resolve an issue directly from the list of pending issues. The application will ask for confirmation from the user before resolving with the use of a modal dialog:
- Create an Angular component to host the dialog:
ng generate component confirm-dialog
- Open the
confirm-dialog.component.ts
file and create the following input and output properties in theConfirmDialogComponent
class:import { Component, EventEmitter, Input, Output } from '@angular/core'; @Component({ selector: 'app-confirm-dialog', templateUrl: './confirm-dialog.component.html', styleUrls: ['./confirm-dialog.component.css'] }) export class ConfirmDialogComponent { @Input() issueNo: number | null ...