I have a question:
Will using ElementRef.nativeElement
to read a property value (e.g. 'scrollHeight') count as a DOM interaction and therefore break Angular Universal?
ElementRef seems to be the only way to read a property from an element: https://stackoverflow.com/a/38037240/5565132
Example:
HTML:
<div #test1></div>
TS:
@ViewChild('test1') test1: ElementRef;
ngOnInit() {
console.log(this.test1.nativeElement.scrollHeight);
}