Skip to content

Glossary: Angular Beyond the Basics

afterNextRender

A function that runs a callback once, in the browser only, after the page is first drawn. Use it for browser-only code such as `localStorage` so the server doesn't crash.

Where the book teaches it

Related terms

localStorageServer-side rendering (SSR)