Describe the structure of a basic Angular project.

Angular basics · Freshers

Model answer

A new project has a src folder with main.ts (the entry point that starts the app), index.html (the single page), styles.css (global styles) and an app folder. In the app folder you will find the root component (app.ts or app.component.ts with its template and styles), app.config.ts (providers such as the router and HTTP client) and app.routes.ts (the route list).

Outside src are angular.json (build settings), package.json (dependencies and scripts) and tsconfig files (TypeScript options).

Tips

Learn this topic

Angular Tutorial: Beginner to Advanced .

Sign in to add your own answer.

More questions