Angular 8 Interview Questions – Set 04

 What are the benefits of using Template-driven forms in Angular 8?

Following are the benefits of using Template-driven forms:

  • You should use Template-driven forms if you want to add a simple form to your application because template-driven forms use two-way data binding to update the data model in the component. By using this, you can see the changes instantly as you make changes in the template and vice versa.
  • Template-driven forms are easy to use in the application, but they are not as scalable as Reactive forms, so they are preferred to use in test applications for learning purposes.
  • Template-driven forms are mainly used if your application requires a very basic form and logic. It can easily be managed in a template.

What are the most important parts of the Angular 8 Architecture?

The architecture of an Angular 8 application follows some fundamental concepts. The basic building blocks are NgModules that are used to provide compilation context for components and collect related code into functional sets. A set of NgModules are used to define an Angular app.

Following is the list of most important parts of the Angular 8 architecture:

  • Modules
  • Components
  • Templates
  • MetaData
  • Data-Binding
  • Directives
  • Services
  • Dependency Injection