Answers for "angular stop propagation"

1

angular click stop propagation

<div (click)="$event.stopPropagation()"></div>
Posted by: Guest on March-19-2021
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 "angular stop propagation"

Browse Popular Code Answers by Language