# Build en optimalisatie (Angular) > Productie-builds, AOT-compilatie, tree shaking, lazy loading, bundle-optimalisatie, source maps, budgets - 20 gespreksvragen - Mid-Level - [Gespreksvragen: Angular](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen.md) ## 1. Wat is AOT-compilatie in Angular? **Antwoord** AOT-compilatie (Ahead-of-Time) transformeert Angular-code en templates tijdens de buildfase, vóór deployment, naar geoptimaliseerd JavaScript. Dit vermindert de bundlegrootte omdat de Angular-compiler niet wordt meegenomen, verbetert de laadprestaties en detecteert templatefouten eerder. Sinds Angular 9 is AOT standaard ingeschakeld voor alle builds. ## 2. Wat is het belangrijkste voordeel van AOT ten opzichte van JIT-compilatie? **Antwoord** AOT produceert kleinere bundles omdat de Angular-compiler (ongeveer 1MB) wordt uitgesloten van de uiteindelijke bundle, in tegenstelling tot JIT dat de compiler in de browser vereist. AOT verbetert ook de laadtijd door client-side compilatie te elimineren, detecteert templatefouten eerder en verbetert de beveiliging door templates vooraf te compileren. ## 3. Hoe schakel je AOT-compilatie in in een ng build-commando? **Antwoord** Sinds Angular 9 is AOT de standaardcompilatie voor alle omgevingen. Voor een productie-build schakelt ng build --configuration production automatisch AOT in. De --aot-vlag bestaat, maar is overbodig omdat AOT nu altijd actief is, tenzij expliciet anders geconfigureerd in angular.json. ## Nog 17 vragen beschikbaar - Welke configuratie in angular.json schakelt optimalisaties in voor een productie-build? - Wat is tree shaking in Angular? Meld je gratis aan: https://sharpskill.dev/nl/login ## Andere Angular-sollicitatieonderwerpen - [TypeScript-basis](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/typescript-basics.md): 25 vragen, Junior - [TypeScript Gevorderd](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/typescript-advanced.md): 20 vragen, Junior - [Angular-grondbeginselen](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/angular-fundamentals.md): 20 vragen, Junior - [Componenten en levenscyclus](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/components-lifecycle.md): 20 vragen, Junior - [Services & Dependency Injection](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/services-dependency-injection.md): 20 vragen, Junior - [Angular-module-organisatie](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/modules-organization.md): 22 vragen, Mid-Level - [Angular CLI](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/angular-cli.md): 18 vragen, Junior - [Directives en Pipes](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/directives-pipes.md): 22 vragen, Mid-Level - [Routing en Navigatie](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/routing-navigation.md): 24 vragen, Mid-Level - [Reactive Forms](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/forms-reactive.md): 26 vragen, Mid-Level - [Template-driven Forms](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/forms-template-driven.md): 16 vragen, Mid-Level - [RxJS-Basis](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/rxjs-fundamentals.md): 22 vragen, Mid-Level - [RxJS-Operators](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/rxjs-operators.md): 24 vragen, Mid-Level - [HttpClient en API-aanroepen](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/http-client.md): 22 vragen, Mid-Level - [Basis state management](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/state-management-basics.md): 20 vragen, Mid-Level - [Change Detection](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/change-detection.md): 20 vragen, Mid-Level - [Angular Signals](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/angular-signals.md): 20 vragen, Mid-Level - [Standalone Components](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/standalone-components.md): 18 vragen, Mid-Level - [Angular unit testing](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/testing-unit.md): 22 vragen, Mid-Level - [End-to-End Testing](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/testing-e2e.md): 18 vragen, Mid-Level - [NgRx-fundamenten](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/ngrx-fundamentals.md): 24 vragen, Senior - [NgRx gevorderd](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/ngrx-advanced.md): 24 vragen, Senior - [Angular-architectuur](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/angular-architecture.md): 22 vragen, Senior - [Prestatie-optimalisatie](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/performance-optimization.md): 22 vragen, Senior - [Beveiliging en best practices](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/security-best-practices.md): 20 vragen, Senior - [Geavanceerde RxJS-patronen](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/advanced-rxjs-patterns.md): 22 vragen, Senior - [Angular Universal en SSR](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/angular-universal-ssr.md): 20 vragen, Senior - [Angular Micro-frontends](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/micro-frontends-angular.md): 20 vragen, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/build-optimization