Closed jjmhalew closed 1 month ago
Use the ElementRef directly instead, also as it is more type safe
Example:
this._rendererRef.setStyle(this._outerContainerElem()!.nativeElement, "height",${newHeight}px); becomes this._outerContainerElem()!.nativeElement.style.height =${newHeight}px;
this._rendererRef.setStyle(this._outerContainerElem()!.nativeElement, "height",
);
this._outerContainerElem()!.nativeElement.style.height =
;
https://stackoverflow.com/a/39785176/16659122
Use the ElementRef directly instead, also as it is more type safe
Example:
this._rendererRef.setStyle(this._outerContainerElem()!.nativeElement, "height",
${newHeight}px);
becomesthis._outerContainerElem()!.nativeElement.style.height =
${newHeight}px;