I'm a beginner in Angular, currently working on developing a full stack MEAN application. I need some guidance regarding an issue I'm encountering. My goal is to create a form called 'fa-daform.component.html' that captures a brief description, author, and date which will be stored in a database with a randomly generated ID. Upon clicking the submit or create form button, I want the user to be redirected to a new page, 'detailed-daform.component.html,' where they can fill out a more detailed form using the ID of the previously entered data for reference.
Here is the HTML code for the Brief Description file (fa-daform.component.html):
<div>
<mat-toolbar class="menu" color="primary">
<div class="centerNavBar">
<a mat-button href="fa-dashboard">Back</a>
<span class="headSpacer">Damage Assessment Tool</span>
<a mat-button href="">Logout</a>
</div>
</mat-toolbar>
</div>
... // Truncated for brevity
In the TypeScript file for the Brief Description form (fa-daform.component.ts), I have defined functions for creating a new Damage Assessment Report:
import { Component, OnInit } from '@angular/core';
import { DamageAssessmentReportService } from 'src/app/damage-assessment-report.service';
@Component({
selector: 'app-fa-daform',
templateUrl: './fa-daform.component.html',
styleUrls: ['./fa-daform.component.css']
})
export class FADAFormComponent implements OnInit {
... // Truncated for brevity
The Detailed Form file (detailed-daform.component.html) simply contains a message indicating its functionality:
<p>detailed-daform works!</p>
If you encounter the error "Property 'detailedDAFormID' does not exist on type 'FADAFormComponent'," you can refer to my project's GitHub repository at [https://github.com/DillonRampersad/Damage_Assessment_Tool]. Feel free to explore activated routes for resolving this issue. Your assistance in this matter would be greatly appreciated.