# rahulrpyadav/mastering-angular architecture

> Architecture diagram of the GitHub repository rahulrpyadav/mastering-angular, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rahulrpyadav/mastering-angular
- Repository: https://github.com/rahulrpyadav/mastering-angular

## Overview

This repository is a collection of independent Angular learning demos, not one integrated application. The examples progress from a basic app to template-driven forms, reactive forms (including a practice variant), a CRUD-labeled example, component composition, and route-based pages. Each demo bootstraps its own Angular module; the routed demo maps paths to page components. The reactive-form excerpts show validation, dynamic phone-number controls, and local form submission, while the practice version also accumulates valid submissions in memory. Several component and CRUD details are unsampled, so their internal behavior is not inferred.

Main entry points: [`7.Routing/src/app/app-routing.module.ts`](https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/app-routing.module.ts) (Route Config), [`7.Routing/src/app/app.module.ts`](https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/app.module.ts) (Routing Module), [`6.ComponentMaking/src/app/app.module.ts`](https://github.com/rahulrpyadav/mastering-angular/blob/main/6.ComponentMaking/src/app/app.module.ts) (Component Module), [`1.Introduction/src/main.ts`](https://github.com/rahulrpyadav/mastering-angular/blob/main/1.Introduction/src/main.ts) (Intro Startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_basics["Intro Demo"]
  node_intro_main["Intro Startup<br/>[main.ts]"]
  node_intro_module["Intro Module<br/>[app.module.ts]"]
  node_intro_app["Intro App<br/>[app.component.ts]"]
end

subgraph group_forms["Form Demos"]
  node_template_main["Template Startup<br/>[main.ts]"]
  node_template_module["Template Module<br/>[app.module.ts]"]
  node_template_app["Template Form<br/>[app.component.ts]"]
  node_reactive_main["Reactive Startup<br/>[main.ts]"]
  node_reactive_module["Reactive Module<br/>[app.module.ts]"]
  node_reactive_app["Reactive Form<br/>[app.component.ts]"]
  node_practice_main["Practice Startup<br/>[main.ts]"]
  node_practice_module["Practice Module<br/>[app.module.ts]"]
  node_practice_app["Practice Form<br/>[app.component.ts]"]
  node_crud_main["CRUD Startup<br/>[main.ts]"]
  node_crud_module["CRUD Module<br/>[app.module.ts]"]
  node_crud_app["CRUD App<br/>[app.component.ts]"]
end

subgraph group_components["Component Demo"]
  node_component_main["Component Startup<br/>[main.ts]"]
  node_component_module["Component Module<br/>[app.module.ts]"]
  node_component_app["Component App<br/>[app.component.ts]"]
  node_component_home["Home Component<br/>[home.component.ts]"]
end

subgraph group_routing["Routing Demo"]
  node_routing_main["Routing Startup<br/>[main.ts]"]
  node_routing_module["Routing Module<br/>[app.module.ts]"]
  node_routing_app["Routing App<br/>[app.component.ts]"]
  node_route_config["Route Config"]
  node_home["Home Page<br/>[home.component.ts]"]
  node_about["About Page<br/>[about.component.ts]"]
  node_courses["Courses Page"]
  node_gallery["Gallery Page"]
  node_contact["Contact Page"]
  node_header["Header Component"]
  node_footer["Footer Component"]
end

node_browser(("Browser"))

node_browser -->|"opens"| node_intro_main
node_intro_main -->|"bootstraps"| node_intro_module
node_intro_module -->|"bootstraps"| node_intro_app
node_browser -->|"opens"| node_template_main
node_template_main -->|"bootstraps"| node_template_module
node_template_module -->|"bootstraps"| node_template_app
node_browser -->|"opens"| node_reactive_main
node_reactive_main -->|"bootstraps"| node_reactive_module
node_reactive_module -->|"bootstraps"| node_reactive_app
node_browser -->|"opens"| node_practice_main
node_practice_main -->|"bootstraps"| node_practice_module
node_practice_module -->|"bootstraps"| node_practice_app
node_browser -->|"opens"| node_crud_main
node_crud_main -->|"bootstraps"| node_crud_module
node_crud_module -->|"bootstraps"| node_crud_app
node_browser -->|"opens"| node_component_main
node_component_main -->|"bootstraps"| node_component_module
node_component_module -->|"bootstraps"| node_component_app
node_component_module -->|"declares"| node_component_home
node_browser -->|"opens"| node_routing_main
node_routing_main -->|"bootstraps"| node_routing_module
node_routing_module -->|"bootstraps"| node_routing_app
node_routing_module -->|"imports"| node_route_config
node_route_config -->|"routes to"| node_home
node_route_config -->|"routes to"| node_about
node_route_config -->|"routes to"| node_courses
node_route_config -->|"routes to"| node_gallery
node_route_config -->|"routes to"| node_contact
node_routing_module -->|"declares"| node_header
node_routing_module -->|"declares"| node_footer

click node_intro_main "https://github.com/rahulrpyadav/mastering-angular/blob/main/1.Introduction/src/main.ts"
click node_intro_module "https://github.com/rahulrpyadav/mastering-angular/blob/main/1.Introduction/src/app/app.module.ts"
click node_intro_app "https://github.com/rahulrpyadav/mastering-angular/blob/main/1.Introduction/src/app/app.component.ts"
click node_template_main "https://github.com/rahulrpyadav/mastering-angular/blob/main/2.Form/src/main.ts"
click node_template_module "https://github.com/rahulrpyadav/mastering-angular/blob/main/2.Form/src/app/app.module.ts"
click node_template_app "https://github.com/rahulrpyadav/mastering-angular/blob/main/2.Form/src/app/app.component.ts"
click node_reactive_main "https://github.com/rahulrpyadav/mastering-angular/blob/main/3.ReactiveForm/src/main.ts"
click node_reactive_module "https://github.com/rahulrpyadav/mastering-angular/blob/main/3.ReactiveForm/src/app/app.module.ts"
click node_reactive_app "https://github.com/rahulrpyadav/mastering-angular/blob/main/3.ReactiveForm/src/app/app.component.ts"
click node_practice_main "https://github.com/rahulrpyadav/mastering-angular/blob/main/3.ReactiveFormPractice/src/main.ts"
click node_practice_module "https://github.com/rahulrpyadav/mastering-angular/blob/main/3.ReactiveFormPractice/src/app/app.module.ts"
click node_practice_app "https://github.com/rahulrpyadav/mastering-angular/blob/main/3.ReactiveFormPractice/src/app/app.component.ts"
click node_crud_main "https://github.com/rahulrpyadav/mastering-angular/blob/main/4.ReactiveFormWithCURD/src/main.ts"
click node_crud_module "https://github.com/rahulrpyadav/mastering-angular/blob/main/4.ReactiveFormWithCURD/src/app/app.module.ts"
click node_crud_app "https://github.com/rahulrpyadav/mastering-angular/blob/main/4.ReactiveFormWithCURD/src/app/app.component.ts"
click node_component_main "https://github.com/rahulrpyadav/mastering-angular/blob/main/6.ComponentMaking/src/main.ts"
click node_component_module "https://github.com/rahulrpyadav/mastering-angular/blob/main/6.ComponentMaking/src/app/app.module.ts"
click node_component_app "https://github.com/rahulrpyadav/mastering-angular/blob/main/6.ComponentMaking/src/app/app.component.ts"
click node_component_home "https://github.com/rahulrpyadav/mastering-angular/blob/main/6.ComponentMaking/src/app/home/home.component.ts"
click node_routing_main "https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/main.ts"
click node_routing_module "https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/app.module.ts"
click node_routing_app "https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/app.component.ts"
click node_route_config "https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/app-routing.module.ts"
click node_home "https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/home/home.component.ts"
click node_about "https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/about/about.component.ts"
click node_courses "https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/courses/courses.component.ts"
click node_gallery "https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/gallery/gallery.component.ts"
click node_contact "https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/contact/contact.component.ts"
click node_header "https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/header/header.component.ts"
click node_footer "https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/footer/footer.component.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_intro_main,node_intro_module,node_intro_app,node_browser toneBlue
class node_template_main,node_template_module,node_template_app,node_reactive_main,node_reactive_module,node_reactive_app,node_practice_main,node_practice_module,node_practice_app,node_crud_main,node_crud_module,node_crud_app toneAmber
class node_component_main,node_component_module,node_component_app,node_component_home toneMint
class node_routing_main,node_routing_module,node_routing_app,node_route_config,node_home,node_about,node_courses,node_gallery,node_contact,node_header,node_footer toneRose
```

## Components

### Intro Demo

- [Intro Startup](https://github.com/rahulrpyadav/mastering-angular/blob/main/1.Introduction/src/main.ts): `1.Introduction/src/main.ts`
- [Intro Module](https://github.com/rahulrpyadav/mastering-angular/blob/main/1.Introduction/src/app/app.module.ts): `1.Introduction/src/app/app.module.ts`
- [Intro App](https://github.com/rahulrpyadav/mastering-angular/blob/main/1.Introduction/src/app/app.component.ts): `1.Introduction/src/app/app.component.ts`

### Form Demos

- [Template Startup](https://github.com/rahulrpyadav/mastering-angular/blob/main/2.Form/src/main.ts): `2.Form/src/main.ts`
- [Template Module](https://github.com/rahulrpyadav/mastering-angular/blob/main/2.Form/src/app/app.module.ts): `2.Form/src/app/app.module.ts`
- [Template Form](https://github.com/rahulrpyadav/mastering-angular/blob/main/2.Form/src/app/app.component.ts): `2.Form/src/app/app.component.ts`
- [Reactive Startup](https://github.com/rahulrpyadav/mastering-angular/blob/main/3.ReactiveForm/src/main.ts): `3.ReactiveForm/src/main.ts`
- [Reactive Module](https://github.com/rahulrpyadav/mastering-angular/blob/main/3.ReactiveForm/src/app/app.module.ts): `3.ReactiveForm/src/app/app.module.ts`
- [Reactive Form](https://github.com/rahulrpyadav/mastering-angular/blob/main/3.ReactiveForm/src/app/app.component.ts): `3.ReactiveForm/src/app/app.component.ts`
- [Practice Startup](https://github.com/rahulrpyadav/mastering-angular/blob/main/3.ReactiveFormPractice/src/main.ts): `3.ReactiveFormPractice/src/main.ts`
- [Practice Module](https://github.com/rahulrpyadav/mastering-angular/blob/main/3.ReactiveFormPractice/src/app/app.module.ts): `3.ReactiveFormPractice/src/app/app.module.ts`
- [Practice Form](https://github.com/rahulrpyadav/mastering-angular/blob/main/3.ReactiveFormPractice/src/app/app.component.ts): `3.ReactiveFormPractice/src/app/app.component.ts`
- [CRUD Startup](https://github.com/rahulrpyadav/mastering-angular/blob/main/4.ReactiveFormWithCURD/src/main.ts): `4.ReactiveFormWithCURD/src/main.ts`
- [CRUD Module](https://github.com/rahulrpyadav/mastering-angular/blob/main/4.ReactiveFormWithCURD/src/app/app.module.ts): `4.ReactiveFormWithCURD/src/app/app.module.ts`
- [CRUD App](https://github.com/rahulrpyadav/mastering-angular/blob/main/4.ReactiveFormWithCURD/src/app/app.component.ts): `4.ReactiveFormWithCURD/src/app/app.component.ts`

### Component Demo

- [Component Startup](https://github.com/rahulrpyadav/mastering-angular/blob/main/6.ComponentMaking/src/main.ts): `6.ComponentMaking/src/main.ts`
- [Component Module](https://github.com/rahulrpyadav/mastering-angular/blob/main/6.ComponentMaking/src/app/app.module.ts): `6.ComponentMaking/src/app/app.module.ts`
- [Component App](https://github.com/rahulrpyadav/mastering-angular/blob/main/6.ComponentMaking/src/app/app.component.ts): `6.ComponentMaking/src/app/app.component.ts`
- [Home Component](https://github.com/rahulrpyadav/mastering-angular/blob/main/6.ComponentMaking/src/app/home/home.component.ts): `6.ComponentMaking/src/app/home/home.component.ts`

### Routing Demo

- [Routing Startup](https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/main.ts): `7.Routing/src/main.ts`
- [Routing Module](https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/app.module.ts): `7.Routing/src/app/app.module.ts`
- [Routing App](https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/app.component.ts): `7.Routing/src/app/app.component.ts`
- [Route Config](https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/app-routing.module.ts): `7.Routing/src/app/app-routing.module.ts`
- [Home Page](https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/home/home.component.ts): `7.Routing/src/app/home/home.component.ts`
- [About Page](https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/about/about.component.ts): `7.Routing/src/app/about/about.component.ts`
- [Courses Page](https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/courses/courses.component.ts): `7.Routing/src/app/courses/courses.component.ts`
- [Gallery Page](https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/gallery/gallery.component.ts): `7.Routing/src/app/gallery/gallery.component.ts`
- [Contact Page](https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/contact/contact.component.ts): `7.Routing/src/app/contact/contact.component.ts`
- [Header Component](https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/header/header.component.ts): `7.Routing/src/app/header/header.component.ts`
- [Footer Component](https://github.com/rahulrpyadav/mastering-angular/blob/main/7.Routing/src/app/footer/footer.component.ts): `7.Routing/src/app/footer/footer.component.ts`

### Other components

- **Browser**

## Connections

- Browser → Intro Startup: opens (evidence: `1.Introduction/src/main.ts`)
- Intro Startup → Intro Module: bootstraps (evidence: `1.Introduction/src/main.ts`)
- Intro Module → Intro App: bootstraps (evidence: `1.Introduction/src/app/app.module.ts`)
- Browser → Template Startup: opens (evidence: `2.Form/src/main.ts`)
- Template Startup → Template Module: bootstraps (evidence: `2.Form/src/main.ts`)
- Template Module → Template Form: bootstraps (evidence: `2.Form/src/app/app.module.ts`)
- Browser → Reactive Startup: opens (evidence: `3.ReactiveForm/src/main.ts`)
- Reactive Startup → Reactive Module: bootstraps (evidence: `3.ReactiveForm/src/main.ts`)
- Reactive Module → Reactive Form: bootstraps (evidence: `3.ReactiveForm/src/app/app.module.ts`)
- Browser → Practice Startup: opens (evidence: `3.ReactiveFormPractice/src/main.ts`)
- Practice Startup → Practice Module: bootstraps (evidence: `3.ReactiveFormPractice/src/main.ts`)
- Practice Module → Practice Form: bootstraps (evidence: `3.ReactiveFormPractice/src/app/app.module.ts`)
- Browser → CRUD Startup: opens (evidence: `4.ReactiveFormWithCURD/src/main.ts`)
- CRUD Startup → CRUD Module: bootstraps (evidence: `4.ReactiveFormWithCURD/src/main.ts`)
- CRUD Module → CRUD App: bootstraps (evidence: `4.ReactiveFormWithCURD/src/app/app.module.ts`)
- Browser → Component Startup: opens (evidence: `6.ComponentMaking/src/main.ts`)
- Component Startup → Component Module: bootstraps (evidence: `6.ComponentMaking/src/main.ts`)
- Component Module → Component App: bootstraps (evidence: `6.ComponentMaking/src/app/app.module.ts`)
- Component Module → Home Component: declares (evidence: `6.ComponentMaking/src/app/app.module.ts`)
- Browser → Routing Startup: opens (evidence: `7.Routing/src/main.ts`)
- Routing Startup → Routing Module: bootstraps (evidence: `7.Routing/src/main.ts`)
- Routing Module → Routing App: bootstraps (evidence: `7.Routing/src/app/app.module.ts`)
- Routing Module → Route Config: imports (evidence: `7.Routing/src/app/app.module.ts`)
- Route Config → Home Page: routes to (evidence: `7.Routing/src/app/app-routing.module.ts`)
- Route Config → About Page: routes to (evidence: `7.Routing/src/app/app-routing.module.ts`)
- Route Config → Courses Page: routes to (evidence: `7.Routing/src/app/app-routing.module.ts`)
- Route Config → Gallery Page: routes to (evidence: `7.Routing/src/app/app-routing.module.ts`)
- Route Config → Contact Page: routes to (evidence: `7.Routing/src/app/app-routing.module.ts`)
- Routing Module → Header Component: declares (evidence: `7.Routing/src/app/app.module.ts`)
- Routing Module → Footer Component: declares (evidence: `7.Routing/src/app/app.module.ts`)
