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

Parameterized Pipes

Learn how Angular Pipes accept parameters to control and customize the way data is transformed and displayed.

What are Parameterized Pipes?

Parameterized Pipes are Angular Pipes that receive one or more additional values to customize their output.

Parameters are written after the pipe name using the colon : symbol.

Parameterized Pipe Flow

1
Original Data

Component provides the value.

→
2
Pipe

Select the required pipe.

→
3
Parameter

Pass additional formatting information.

→
4
Output

Angular displays the customized value.

Basic Syntax

Syntax
{{value | pipeName:parameter}}
Example:
{{courseFee | currency:'INR'}}

Currency Pipe with Parameter

The currency pipe accepts a currency code as a parameter.

Component
courseFee = 35000;
Template
<p>
    {{courseFee | currency:'INR'}}
</p>
Output:
₹35,000.00

Date Pipe with Parameter

The date pipe can receive a format parameter to control the displayed date.

Component
joiningDate = new Date();
Template
<p>
    {{joiningDate | date:'dd/MM/yyyy'}}
</p>
Example Output:
07/10/2026

Number Pipe with Parameter

The number pipe can accept digit information as a parameter.

Component
marks = 87.5678;
Template
<p>
    {{marks | number:'1.2-2'}}
</p>
Output:
87.57

Percent Pipe with Parameter

The percent pipe can accept digit information for formatting the percentage.

Component
completion = 0.8567;
Template
<p>
    {{completion | percent:'1.1-2'}}
</p>
Output:
85.67%

Multiple Parameters

Some pipes can accept more than one parameter. Parameters are separated using additional colon symbols.

Syntax
{{value | pipeName:param1:param2}}
Example
{{courseFee | currency:'INR':'symbol':'1.0-0'}}
Explanation:
Multiple values can be supplied to customize the pipe output.

Pipe Without Parameter

Not every pipe requires a parameter.

Example
{{studentName | uppercase}}
Output:
SAMIKSHA

Pipe with and without Parameters

Pipe Without Parameter With Parameter
Uppercase {{name | uppercase}} Not required
Date {{date | date}} {{date | date:'dd/MM/yyyy'}}
Currency {{fee | currency}} {{fee | currency:'INR'}}
Number {{marks | number}} {{marks | number:'1.2-2'}}
Percent {{value | percent}} {{value | percent:'1.1-2'}}

Student Example

student.component.ts
export class StudentComponent {

    studentName = 'Samiksha';

    courseFee = 35000;

    marks = 87.5678;

    completion = 0.8567;

    joiningDate = new Date();

}
student.component.html
<h3>
    {{studentName | uppercase}}
</h3>

<p>
    Course Fee:
    {{courseFee | currency:'INR'}}
</p>

<p>
    Marks:
    {{marks | number:'1.2-2'}}
</p>

<p>
    Completion:
    {{completion | percent:'1.1-2'}}
</p>

<p>
    Joining Date:
    {{joiningDate | date:'dd/MM/yyyy'}}
</p>

SAMIKSHA

Course Fee: ₹35,000.00

Marks: 87.57

Completion: 85.67%

Angular Student

Parameter Rules

1
Colon

Use : to pass a parameter to a pipe.

2
Order

Multiple parameters are passed in the required order.

3
Values

Parameters can be strings, numbers, or expressions.

4
Output

Parameters control the final formatted output.

Best Practices

  • Use parameters only when customized formatting is required.
  • Keep pipe expressions readable.
  • Pass meaningful values to pipe parameters.
  • Use the correct parameter order for multiple parameters.
  • Avoid unnecessary complex expressions inside pipe parameters.
  • Use built-in pipe parameters whenever they solve the formatting requirement.

Summary

  • Parameterized Pipes accept additional values.
  • The colon : is used to pass parameters.
  • Date pipes can receive formatting parameters.
  • Currency pipes can receive currency information.
  • Number and percent pipes can receive digit configuration.
  • Some pipes can accept multiple parameters.
  • Parameters provide greater control over displayed data.