Components – Creation, Communication (Input/Output)
Creation Of Component ✅ Step 1: Generate Components ng generate component parent-dashboard ng generate component student-detail Observe in change in File Structure src/ └── app/ ├── parent-dashboard/ │ ├── parent-dashboard.component.ts │ └── parent-dashboard.component.html └── student-detail/ ├── student-detail.component.ts └── student-detail.component.html Parent → Child Communication (via @Input ) Use Case: Parent sends student data to child component. parent-dashboard.component.ts import { Component } from '@angular/core' ; import { FormsModule } from '@angular/forms' ; import { StudentDetail } from '../student-detail/student-detail' ; @ Component ({ selector : 'app-parent-dashboard' , imports : [ FormsModule , StudentDetail ], templateUrl : './parent-dashboard.html' , styleUrl : './parent-dashboard.cs...