VOOZH about

URL: https://www.geeksforgeeks.org/angular-js/how-to-get-the-value-of-the-form-in-angular/

⇱ How to get the value of the form in Angular ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to get the value of the form in Angular ?

Last Updated : 23 Jul, 2025

In this article, we are going to see how to get value from the form in Angular 10. We will use AbstractControl value property to get the form value in an object.

Syntax:

form.value

Return Value:

  • object: It is an object containing form value

Approach: 

  • Create the Angular app to be used
  • In app.component.html make a form using ngForm directive.
  • Now get the value using AbstractControl value property
  • Serve the angular app using ng serve to see the output.

Example 1:

Output:

👁 Image

Reference: https://v17.angular.io/api/forms/AbstractControlDirective#value

Comment

Explore