11 lines
240 B
TypeScript
11 lines
240 B
TypeScript
|
import { Directive, HostListener } from "@angular/core";
|
||
|
|
||
|
@Directive({
|
||
|
selector: "[appStopClick]",
|
||
|
})
|
||
|
export class StopClickDirective {
|
||
|
@HostListener("click", ["$event"]) onClick($event: MouseEvent) {
|
||
|
$event.preventDefault();
|
||
|
}
|
||
|
}
|