What are the Validator functions? There are two types of validator functions which are the following - 1. Async validators 2. Sync validators Async validator functions that take a control instance and return an observable that later emits a set of validation errors or null. Sync validator functions that take a control instance and return a set of validation errors or null. Angular runs only Async validators due to some performance issues. What Is a Template Reference variable? A template reference variable is a way of capturing a reference to a specific element, component, directive, and pipe so that it can be used someplace in the same template HTML . You should declare a reference variable using the hash symbol (#) . The Angular components and directives only match selectors for classes that are declared in the Angular module. Template Reference Variable Syntax – You can us...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers