mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
move various angular bits into shared jslib
This commit is contained in:
13
src/angular/directives/stop-prop.directive.ts
Normal file
13
src/angular/directives/stop-prop.directive.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import {
|
||||
Directive,
|
||||
HostListener,
|
||||
} from '@angular/core';
|
||||
|
||||
@Directive({
|
||||
selector: '[appStopProp]',
|
||||
})
|
||||
export class StopPropDirective {
|
||||
@HostListener('click', ['$event']) onClick($event: MouseEvent) {
|
||||
$event.stopPropagation();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user