Master Angular From Scratch

Learn Angular with clear, interactive, and structured lessons for beginners and developers.

ANGULAR COURSE SYLLABUS
1. Angular Introduction
Angular Introduction Angular History Angular Fundamentals Angular Architecture Component-Based Angular
2. Angular Setup
Angular Setup Introduction Installing Node.js Installing Angular CLI Creating an Angular Application Angular Project Structure
3. Components
Components Overview Component Anatomy Creating Components Component Selector Component Template Component Styles Component Metadata Standalone Components Parent and Child Components Reusable Components
4. Templates
Templates Introduction Template Syntax Template Expressions Template Statements Template Reference Variables ng-template ng-container ngTemplateOutlet Built-in Control Flow
5. Data Binding
Data Binding Introduction Interpolation Binding Property Binding Event Binding Two-Way Data Binding Class & Style Binding
6. Directives
Directives Introduction Attribute Directives Structural Directives Custom Directives
7. Pipes
Pipes Introduction Built-in Pipes Parameterized Pipes Chaining Pipes Custom Pipes
8. Event Handling
Event Handling Introduction DOM Events Event Binding Syntax Event Object Passing Data to Event Handlers
9. Input & Output
Component Communication @Input @Output EventEmitter
10. Lifecycle Hooks
Lifecycle Hooks Introduction ngOnInit ngOnChanges ngAfterViewInit ngOnDestroy
11. Services
Services Introduction Creating Angular Services Using Services in Components Sharing Data Through Services Service Scope
12. Dependency Injection
Dependency Injection Introduction Injecting Dependencies InjectionToken Provider Configuration
13. Routing
Routing Introduction Route Configuration RouterLink & Navigation Route Parameters Child Routes Route Guards
14. Forms
Angular Forms Introduction Template-Driven Forms Reactive Forms Form Validation Form Submission & Error Handling
15. HttpClient
HttpClient Introduction Configuring HttpClient GET Request POST, PUT & DELETE Requests Headers & Parameters HTTP Error Handling
16. Observables
Observables Introduction Creating & Subscribing to Observables Observable Data Streams Observable Operators Subscription Management
17. RxJS
RxJS Introduction RxJS Operators Transformation & Filtering Combining Observables Higher-Order Mapping Subjects
18. API Integration
API Integration Introduction Connecting Angular with REST API Consuming API Data CRUD API Integration API Response & Error Handling

Angular Setup

Before developing Angular applications, we need to prepare the development environment. This includes installing Node.js, Angular CLI and creating our first Angular application.

What is Angular Setup?

Angular requires a development environment where we can create, run, test and build Angular applications.

The basic setup involves installing Node.js, installing Angular CLI, creating an Angular application and running it in the browser.

In simple words: Angular Setup means preparing all the required tools before starting Angular application development.

Angular Setup Flow

1

Node.js

Install Node.js and npm.

→
2

Angular CLI

Install Angular Command Line Interface.

→
3

Create App

Create a new Angular application.

→
4

Run App

Start the application in browser.

Prerequisites

✓
Node.js

Node.js provides the runtime environment required for Angular development.

✓
npm

npm is used to install and manage Angular packages and dependencies.

✓
Code Editor

Visual Studio Code or another suitable editor can be used to write Angular code.

Check Node.js Installation

After installing Node.js, open Command Prompt or Terminal and check the installed Node.js version.

Terminal
node --version

You can also check the npm installation:

Terminal
npm --version
Expected Result

The terminal displays the installed Node.js and npm version information.

Node.js: v[installed-version]
npm: [installed-version]

Install Angular CLI

Angular CLI is a command-line tool that helps developers create, develop, test and build Angular applications.

Terminal
npm install -g @angular/cli

After installation, verify Angular CLI:

Terminal
ng version
Expected Result

Angular CLI displays information about the Angular CLI, Node.js environment and related Angular packages.

Create Angular Application

Once Angular CLI is installed, we can create a new Angular application using the ng new command.

Terminal
ng new CIITStudentApp

Angular CLI will ask some configuration questions. Select the options according to your project requirements.

Example Project: CIITStudentApp

Run Angular Application

Move inside the project folder and start the Angular development server.

Terminal
cd CIITStudentApp
ng serve
Expected Output

Angular starts the development server and provides a local address where the application can be opened in the browser.

http://localhost:4200

Angular Application Flow

Developer Writes Angular Code
↓
Angular CLI Builds Application
↓
Development Server Runs Application
↓
Browser Displays UI

Important Angular Commands

Command Purpose
node --version Check Node.js version
npm --version Check npm version
ng version Check Angular CLI information
ng new ProjectName Create a new Angular application
ng serve Run Angular development server
ng generate component name Create an Angular component

Angular Setup Checklist

✓

Node.js installed

✓

npm available

✓

Angular CLI installed

✓

Angular application created

✓

Angular development server started

✓

Application opened in browser

Summary

Angular setup prepares the development environment required to create Angular applications.

The basic process is Node.js → Angular CLI → Create Application → ng serve → Browser .

In the next topic, we will learn about Node.js and its role in Angular development.