src/lib/services/sz-element-resize-listener.service.ts
A service to ease to do the heavy lifting of adding/removing listeners for resize events on specific dom elements. Used primary by #SzElementResizeObserverDirective for adding resize event listening to elements.
Methods |
|
constructor(ngZone: NgZone)
|
||||||
Parameters :
|
Public addListener | |||||||||
addListener(ele: Element, cb: SzElementResizeObserverCallback)
|
|||||||||
add a new callback to be executed on element resize
Parameters :
Returns :
void
|
Public removeEventListener | ||||||
removeEventListener(ele: Element)
|
||||||
remove a resize listener for an element
Parameters :
Returns :
void
|