liveBook · Manning

Root component

A root component is the topmost component in an application’s component hierarchy, responsible for rendering or managing the root interface.

How 2 Manning books explain it

Pro Angular 16

A root component is the top-level Angular component responsible for managing the content presented at the application’s root element.

How it is used
Provides Angular’s application entry point and manages the top-level content presented at its target element.
How deep it goes
Works through selector, template, module bootstrap, component restructuring, and routing configurations; defers broader component-property details.
Examples
Uses an inline store heading, a store component element, a form-and-table layout, and a router-outlet template.
What you can do after
Build it from scratch as a bootstrapped component, then simplify its template as feature components or routing take over.

Read how Pro Angular 16 explains root component →

Build a Frontend Web Framework (From Scratch)

The topmost component in a component hierarchy from which the application's interface is rendered.

How it is used
Supplies createApp() with the top-level view from which the component hierarchy is rendered.
How deep it goes
Descends from hierarchy role to createApp wiring, mounting, unmounting, and fragment offset handling.
Examples
Uses createApp(), h(), mountDOM(), destroyDOM(), and diagrams contrasting global-state and root-component application instances.
What you can do after
Build an application entry point that mounts and unmounts a root component with optional props.

Read how Build a Frontend Web Framework (From Scratch) explains root component →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.