LinkedIn AngularJs Assessment Answers

AngularJs Assessment Answers | LinkedIn Assessment Answers 2021 Q1. What are the HostListener decorators and the HostBinding decorator doing in this directive? @Directive({    selector: ‘[appCallout]’})export class CalloutDirective {    @HostBinding(‘style.font-weight’) fontWeight = ‘normal’;        @HostListener(‘mouseenter’)     onMouseEnter() {        this.fontWeight = ‘bold’;    } @HostListener(‘mouseleave’)    onMouseLeave(){        this.fontWeight […]

Continue Reading