Answers for "angular stoppropagatio"

0

angular stoppropagatio

import {Directive, HostListener} from "@angular/core";

@Directive({
    selector: "[click-stop-propagation]"
})
export class ClickStopPropagation
{
    @HostListener("click", ["$event"])
    public onClick(event: any): void
    {
        event.stopPropagation();
    }
}
Posted by: Guest on June-09-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language