libs/upp-wdgt/src/directives/upp-touch.ts
A custom Angular directive to handle touch and click events on an element. This directive emits events for various touch and click interactions outside of Angular's zone to improve performance.
AfterViewInit
| Selector | [uppTouch] |
Methods |
Outputs |
constructor(el: ElementRef, zone: NgZone)
|
||||||||||||
|
Constructor
Parameters :
|
| TouchClick |
Type : EventEmitter
|
|
EventEmitter: TouchClick Emits when a |
| TouchLeave |
Type : EventEmitter
|
|
EventEmitter: TouchLeave Emits when a |
| TouchStart |
Type : EventEmitter
|
|
EventEmitter: TouchStart Emits when a |
| ngAfterViewInit |
ngAfterViewInit()
|
|
Lifecycle Hook: ngAfterViewInit Runs after the view has been initialized. Sets up event listeners for various touch and click events on the host element.
Returns :
void
|