1.

Difference between directives and components in angular 5 examples

Answer»

Answer:

component is like a html page and directive is like a plugin

Explanation:

in angular 2+ component is an entire page (html) in which we DEIGN our UI part.

and directive is a like a plugin which contains a small FUNCTIONALITY which we can use to manipulate the HTML DOM.

it can be use to CREATE VALIDATION on email which can be use LATER on other pages to



Discussion

No Comment Found