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?

Advertisements

Exploring Attribute Directives in Angular 2

Attribute Directives are used to change the behavior, appearance or look of an element on a user input or via data from the service. Essentially, there are three types of directives in Angular 2: Component Structural directives Attribute directives In this post, we will learn how to create Attribute Directives in Angular 2. So let’s … Continue reading Exploring Attribute Directives in Angular 2