Skip to content

Glossary: Angular Beyond the Basics

Lifecycle hooks

Also written: ngOnInit, ngOnDestroy

Methods Angular calls at fixed moments: `ngOnInit()` once after inputs are set, `ngOnDestroy()` just before removal.

Where the book teaches it

Related terms

takeUntilDestroyed