2021-12-16 13:36:21 +01:00
|
|
|
import { Directive, HostListener } from "@angular/core";
|
2018-04-04 14:22:55 +02:00
|
|
|
|
|
|
|
@Directive({
|
2021-12-16 13:36:21 +01:00
|
|
|
selector: "[appStopProp]",
|
2018-04-04 14:22:55 +02:00
|
|
|
})
|
|
|
|
export class StopPropDirective {
|
2021-12-16 13:36:21 +01:00
|
|
|
@HostListener("click", ["$event"]) onClick($event: MouseEvent) {
|
|
|
|
$event.stopPropagation();
|
|
|
|
}
|
2018-04-04 14:22:55 +02:00
|
|
|
}
|