src/app/highlight.directive.ts content_copy @ Input appHighlight = ''; The @Input() decorator adds metadata to the class that makes the directive's appHighlight property available for binding. To understand NgForm, we should be aware with following classes. P.S.- This is more or less similar to what others answered. In this tutorial, we are going to learn about how to clear the input field value by clicking a button in angular. location.historyGo(2) moves forward two pages and location.historyGo(-2) moves back two pages. So I have provided sub directive to app module. Keep in mind that a directive's data-bound input properties are not set until after construction. Browser support. By Hardik Savani April 16, 2022 Category : Angular. Attribute, class, and style bindings: Set the value of attributes, classes, and styles. When the DOM element value is changed, Angular automatically updates this property with the changed value. When we try to go beyond what's stored in the history session, we stay in the Technologies Used Find the technologies being used in our example. This means that we can take the HTML input that is inside the fa-input content part, and use it directly inside the Font Awesome template, by projecting it using the ng-content Angular Core Directive: This new version of the component is still incomplete: it does not support yet the focus simulation functionality. NPM 7.20.3 NgForm Directive NgForm directive is used with HTML