#7 angular 8 tutorial in hindi | Directive in angular application | Directive in angular 9 by Ashish

#angular8 tutorial in hindi | Directive in angular application | #Directive in #angular9 by Ashish

#7 angular 8 tutorial in hindi | Directive in angular application | Directive in angular 9 by Ashish

What is an Angular Directive?
Directives are the functions which will execute whenever Angular compiler finds it. Angular Directives enhance the capability of HTML elements by attaching custom behaviors to the DOM.

From the core concept, Angular directives are categorized into three categories.

Attribute Directives
Structural Directives
Components
Attribute Directives
Attribute Directives are responsible for manipulating the appearance and behavior of DOM elements. We can use attribute directives to change the style of DOM elements. These directives are also used to hide or show particular DOM elements conditionally. Angular provides many built-in Attribute Directives like NgStyle, NgClass, etc. We can also create our own custom Attribute Directives for our desired functionality.

Structural Directives
Structural Directives are responsible for changing the structure of the DOM. They work by adding or removing the elements from the DOM, unlike Attribute Directives which just change the element’s appearance and behavior.

You can easily differentiate between the Structural and Attribute Directive by looking at the syntax. The Structural Directive’s name always starts with an asterisk(*) prefix, whereas Attribute Directive does not contain any prefix. The three most popular built-in Structural Directives Angular provides are NgIf, NgFor, and NgSwitch.

Components
Components are directives with templates. The only difference between Components and the other two types of directives is the Template. Attribute and Structural Directives don’t have Templates. So, we can say that the Component is a cleaner version of the Directive with a template, which is easier to use.

Hey ! this is my Official Channel you find here any programing solution like Doc, releted to Networking in C language.
here! Iwill teach all programming language. like php , mysql , html5 css3 , javascript, css, online earning tricks and tip,
and windows tricks besic and advance in Hindi (हिन्दी) and urdu (اردو ).
if you have any query for html5 html4 css3 css , Javascript, JQuery, PHP, wordpress , then ask hrere.
“Hindi and Urdu tutorial” “website designing” “website development” “HTML tutorials for beginner” “html5 tutorials for beginner” “CSS tutorials for beginner” “css3 tutorials for beginner” “javascript tutorials for beginner” “PHP tutorials for beginner” “MySQL tutorials for beginner” “WordPress tutorials for beginner”

facebook
https://www.facebook.com/Testy-Codeiz-340803183243501/

twitter
https://twitter.com/TCodeiz

linkedin
https://www.linkedin.com/in/ashishmipra/

Youtube
https://www.youtube.com/channel/UCyjNY_GgJydoikYPv4U953A

pintrest
https://in.pinterest.com/binumish452/

tumbler
https://www.tumblr.com/blog/testycodeizworld

Website
https://testycodeiz.online

मेरे CHENNAL को SUBSCRIBE करना ना भूले आप मेरे लिंक से मुझसे FACEBOOK ,TWITTER पर अपने जबाब माँग सकते है

धन्यवाद दोस्तों

Post Author: hatefull