AI-powered learning
Save this course
Directives and Pipes in Angular
Gain insights into Angular’s built-in directives and pipes, and delve into creating custom ones. Learn about their real-world applications to boost your project's performance and code readability.
5.0
67 Lessons
2 Projects
3h 10min
Join 2.9 million developers at
Join 2.9 million developers at
LEARNING OBJECTIVES
- In-depth knowledge about how directives and pipes work and how they are implemented.
- Refactor and improvement techniques for common frontend application issues using directives and pipes.
- Implement custom Angular directives.
- Implement custom Angular pipes.
- Angular built-in directives and pipes.
Learning Roadmap
2.
Directives
Directives
Look at Angular directives for reusable elements, custom behaviors, and dynamic DOM manipulation.
Introduction To DirectivesHow Directives Work?Exercise: Practice with DirectivesSolution: Practice with DirectivesAngular Built-in Attribute Directives - NgClassExercise: The Built-in `NgClass` DirectiveSolution: The Built-in `NgClass` DirectiveThe Built-in `NgStyle` DirectiveExercise: The Built-in `NgStyle` DirectiveSolution: The Built-in `NgStyle` DirectiveThe Built-in `NgModel` DirectiveExercise: The Built-in `NgModel` DirectiveSolution: The Built-in `NgModel` DirectiveThe Built-in `NgIf` DirectiveExercise: The Built-in `NgIf` DirectiveSolution: The Built-in `NgIf` DirectiveThe Built-in `NgFor` DirectiveExercise: The Built-in `NgFor` DirectiveSolution: The Built-in `NgFor` DirectiveThe Built-in `NgSwitch` DirectiveExercise: The Built-in `NgSwitch` DirectiveSolution: The Built-in `NgSwitch` DirectiveA Useful Trick with `ng-container`
3.
Attribute Directives
Attribute Directives
11 Lessons
11 Lessons
Examine attribute directives to manipulate and enhance element behavior and styles in Angular.
4.
Structural Directives
Structural Directives
7 Lessons
7 Lessons
Grasp the fundamentals of Angular's structural directives for dynamic DOM manipulation and custom user access controls.
5.
Advanced Techniques Using Directives
Advanced Techniques Using Directives
9 Lessons
9 Lessons
Solve problems in handling visibility, reusable components, and multiple elements using Angular directives.
7.
Pipes
Pipes
14 Lessons
14 Lessons
Build on how Angular pipes transform data, utilize built-in and custom pipes, and combine various pipes for dynamic, efficient data presentation.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Complete more lessons to unlock your certificate
Developed by MAANG Engineers
ABOUT THIS COURSE
Directives and pipes are incredible and often undervalued features of the Angular framework. They allow us to write efficient code, improve application performance, and omit code duplications.
In this course, you will learn about the theory and the working mechanisms of built-in directives and pipes in Angular. You’ll also implement some custom directives and pipes to learn about their real-world application cases. With this course, you will improve your Angular skills and refine your project’s codebase to increase the performance and readability of your code.
ABOUT THE AUTHOR
Maciej Wojcik
Hey, I'm a frontend developer, passionate about good design for both the code and UX/UI side of things. I am mainly involved in Angular, rxjs, TypeScript subjects.
Trusted by 2.9 million developers working at companies
A
Anthony Walker
@_webarchitect_
E
Evan Dunbar
ML Engineer
S
Software Developer
Carlos Matias La Borde
S
Souvik Kundu
Front-end Developer
V
Vinay Krishnaiah
Software Developer
Built for 10x Developers
No Passive Learning
Learn by building with project-based lessons and in-browser code editor


Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go


Future-proof Your Career
Get hands-on with in-demand skills


AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"




MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies


Free Resources