Question: what is the difference between component and directive in angular 4?
Answer: Component is a directive which use shadow DOM to create encapsulate visual behavior called components. ... Directives is used to add behavior to an existing DOM element. Component is used to break up the application into smaller components. Directive is use to design re-usable components.