Angular 7 Directives overview.

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. Components are the most common of the three directives. You saw a component for the first time in the Getting Started. Structural Directives change the structure of the view. Two examples are NgFor and NgIf. … Continue reading Angular 7 Directives overview.

What is the difference between ‘extends’ and ‘implements’ keyword in TypeScript and Angular ?

In typescript (and some other OO languages) you have classes and interfaces. An interface has no implementation, it’s just a “contract” or “blueprint” of what members/method this type has.For example: Instances who implement this Point interface must have two members of type number: x and y, and one method distance which receives another Point instance and returns a number.The interface doesn’t implement any of those. Classes are the implementations: (code in playground) In your example … Continue reading What is the difference between ‘extends’ and ‘implements’ keyword in TypeScript and Angular ?