<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vaibhav</title>
    <description>The latest articles on DEV Community by Vaibhav (@15vaibhav).</description>
    <link>https://dev.to/15vaibhav</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F160884%2Feee424ba-2922-4bd8-8bfb-04ca2c190cb3.jpg</url>
      <title>DEV Community: Vaibhav</title>
      <link>https://dev.to/15vaibhav</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/15vaibhav"/>
    <language>en</language>
    <item>
      <title>Hello</title>
      <dc:creator>Vaibhav</dc:creator>
      <pubDate>Wed, 13 Jan 2021 15:19:47 +0000</pubDate>
      <link>https://dev.to/15vaibhav/hello-3f0</link>
      <guid>https://dev.to/15vaibhav/hello-3f0</guid>
      <description></description>
      <category>javascript</category>
    </item>
    <item>
      <title>What is Directives in Angular ? </title>
      <dc:creator>Vaibhav</dc:creator>
      <pubDate>Thu, 10 Sep 2020 13:27:19 +0000</pubDate>
      <link>https://dev.to/15vaibhav/what-is-directives-in-angular-362i</link>
      <guid>https://dev.to/15vaibhav/what-is-directives-in-angular-362i</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WoZRoz-W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bzf78fjelvq0enrpn3lc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WoZRoz-W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bzf78fjelvq0enrpn3lc.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
If you have been working on Angular you must heard the keyword Directive. What is Directives in Angular ?&lt;br&gt;
Lets take a look!&lt;br&gt;
Directive is a Decorator that marks a class as an Angular directive. You can define your own directives to attach custom behavior to elements in the DOM. &lt;br&gt;
So how many types of Directives exist in Angular?&lt;br&gt;
Basically, there are three types of Directives that exist in Angular. But it's not done you can also create your own Directive in Angular. Will discuss...&lt;br&gt;
1 #Component Directive&lt;br&gt;
Components are just directives with templates they use the directive API and give us a cleaner way to define them. it doesn't manipulate the Dom it creates them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4KiGaI_c--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/m5ae7fcnyi9lz17bm4pd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4KiGaI_c--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/m5ae7fcnyi9lz17bm4pd.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2 #Structural Directive&lt;br&gt;
Structure directives manipulate the DOM elements. These directives have a * sign before the directive. For example, *ngIf and *ngFor etc.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zUHLesrc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/uacnbkl1aqueqhrtbd7h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zUHLesrc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/uacnbkl1aqueqhrtbd7h.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3 #Attribute Directives &lt;br&gt;
Attribute directives are used to change the look and behavior of the DOM element. For Example, NgStyle, NgClass etc.&lt;/p&gt;

&lt;p&gt;Note* Structural Directive is used to manipulate the Dom while Attribute directives are used to change the look and behavior of the DOM element. &lt;/p&gt;

</description>
      <category>angular</category>
      <category>typescript</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
