Ejemplo: stoppropagatio angular
import {Directive, HostListener} from "@angular/core";
@Directive({
selector: "[click-stop-propagation]"
})
export class ClickStopPropagation
{
@HostListener("click", ["$event"])
public onClick(event: any): void
{
event.stopPropagation();
}
}
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)