How to create Custom Validator for Angular Reactive Forms

Learn full article on the Infragistics blog In this blog post, we will learn to create custom validators in Angular Reactive Forms. If you are new to reactive forms, learn how to create your first Angular reactive form here. Let’s say we have a login form as shown in the listing below. Currently, the form … Continue reading How to create Custom Validator for Angular Reactive Forms

Advertisements

Understanding @Output and EventEmitter in Angular

  Read full article on the Infragistics blog Angular is based on a one-directional data flow and does not have two-way data binding. So, how do you get a component to emit an event to another component? In Angular, a component can emit an event using @Output and EventEmitter. Both are parts of the @angular/core. … Continue reading Understanding @Output and EventEmitter in Angular

What are @HostBinding() and @HostListener() in Angular?

Read full article on the Infragistics blog To understand @HostListener and @HostBinding, you should have basic knowledge about directives in Angular. There are three types of directives in Angular: Component Attribute Directive Structural Directive The basic difference between a component and a directive is that a component has a template, whereas an attribute or structural … Continue reading What are @HostBinding() and @HostListener() in Angular?