Angular, Server Side Rendering, Hydration, Static Site Generator, Ssr.
constructor() { afterNextRender(() => { // Safe to check `scrollHeight` because this will only run // in the browser, not the server. console.log(this.contentRef.nativeElement.scrollHeight); }); } } What if I don’t want or can’t use a Node.js server? Here is some good news: You can use those same