# Template-driven Forms (Angular) > FormsModule, NgModel, two-way binding, form validation, ngForm, template reference variables, validation states - 16 gespreksvragen - Mid-Level - [Gespreksvragen: Angular](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen.md) ## 1. Welke Angular module moet je importeren om template-driven forms te gebruiken? **Antwoord** FormsModule is vereist om template-driven forms in Angular in te schakelen. Het biedt directives zoals NgModel, NgForm en maakt two-way data binding mogelijk met [(ngModel)]. Zonder deze module werken form directives niet en gooit Angular fouten. ## 2. Welke syntax gebruik je voor two-way data binding met NgModel? **Antwoord** De [(ngModel)] syntax combineert property binding [ngModel] en event binding (ngModel) om two-way data binding te creƫren. Deze banana-in-a-box syntax synchroniseert automatisch de form field waarde met de component property in beide richtingen, wat form state management vereenvoudigt. ## 3. Welk attribuut is verplicht op een input met NgModel in een template-driven form? **Antwoord** Het name attribuut is verplicht op elke input die NgModel gebruikt in een template-driven form. Angular gebruikt dit attribuut om het control te registreren in de onderliggende FormGroup en de form structuur te maken. Zonder het name attribuut kan Angular de control status niet bijhouden en gooit het een fout. ## Nog 13 vragen beschikbaar - Hoe krijg je toegang tot de NgForm directive om de form status te controleren? - Hoe krijg je toegang tot de status van een specifiek veld in de template? 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 - [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 - [Build en optimalisatie](https://sharpskill.dev/nl/technologies/angular/sollicitatievragen/build-optimization.md): 20 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/forms-template-driven