1. What are three different types of directives and explain them with example?Three three types of directives in Angular and these are :Structural Directive: Structural directives enable Angular developers to add, edit and remove elements in the DOM.Attribute Directive: Attribute directive enable Angular developers to define an attribute that when added to an element change the appearance of the element.Component Directive: This enables you to define directives that contain templates using a rich HTML-like Syntax.2. What is Refactoring?Refactoring...