top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is difference between Directive & Component in Angular(2,4,5)?

0 votes
661 views
What is difference between Directive & Component in Angular(2,4,5)?
posted Dec 20, 2017 by Manish Tiwari

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

A component is nothing but the directives

There are three kinds of directives in Angular:

Components—directives with a template.
Structural directives—change the DOM layout by adding and removing DOM elements.
Attribute directives—change the appearance or behavior of an element, component, or another directive.

Read More : https://angular.io/docs/ts/latest/guide/attribute-directives.html

answer Jun 11, 2018 by Aarati Mahajan
...