To make a custom directive, we must use the @Directive decorator instead of the @Component decorator. So, let's begin by making our first Custom Attribute directive. We'll use this directive to highlight the specified DOM element by changing its background colour. Create a highlight for your app.
Attribute directives, structural directives, and components are the three types of directives in Angular.
Work directives are a set of instructions that help a person to achieve their goals. They can be used by people in any field, but they are especially useful in the workplace.
Today, work directives can be given by anyone with access to an internet connection. This includes your friends, family members, and even strangers.
Learner's Ratings
4
Overall Rating
64%
16%
2%
11%
7%
Reviews
N
NAVNEET MAHESWARI
5
EASY TO LEARN
P
Prabhat Yadav
5
Amazing course content and easy to understand.
A
Aparna K
5
Excellent
R
Rambo Krish
5
sds
S
Shraddha Naik
5
Good
K
Kijima
5
Very good
L
LAXMAN GOVIND RATHOD
5
The Advanced AngularJS Course was good and included all the topics to find a good job in my City.
V
V.phanindra babu
4
The Advanced AngularJS Course was good and included all the topics to find a good job in my City.
P
Prakriti
4
The Advanced AngularJS Course was good and included all the topics to find a good job in my City.
V
Virender morya
5
Hello
Show More
Recommended Courses
The Complete JavaScript Course - Beginner to Advance
Share a personalized message with your friends.