Add Class to a Host Element using @hostbinding in Angular 2
@HostBinding is decorator in Angular. @HostBinding lets you set properties on the host element or component.HostBinding will bind property to
Read more@HostBinding is decorator in Angular. @HostBinding lets you set properties on the host element or component.HostBinding will bind property to
Read moreConstructor is use for class members and for dependency injection in Angular 2. ngOnInit is use for initialization. When component is
Read more