How Angular application is Bootstrapped?
Angular applications are single-page applications. Only one HTML file will be available. only the components will be replaced whenever navigate to different pages.
- Angular application's startup file is mentioned in angular.json as below
- "architect": {"build": {"builder": "@angular-devkit/build-angular:browser","options": {"outputPath": "dist/Angular-fundamentals","index": "src/index.html","main": "src/main.ts","polyfills": "src/polyfills.ts","tsConfig": "tsconfig.app.json","aot": true,"assets": ["src/favicon.ico","src/assets"],
- Module to be loaded will be mentioned in Main.ts as below