What happens when an Angular application starts?

Angular basics · Freshers

Model answer

The browser loads index.html, which contains the root element (for example app-root) and the built JavaScript bundles. main.ts calls bootstrapApplication with the root component and the app configuration. Angular creates the root component, renders its template into the root element, sets up the router, and the first route's component appears.

From then on Angular reacts to events and data changes and updates the screen.

Learn this topic

Angular Tutorial: Beginner to Advanced .

Sign in to add your own answer.

More questions