VOOZH about

URL: https://www.geeksforgeeks.org/angular-js/how-to-check-whether-a-form-or-a-control-is-untouched-or-not-in-angular-10/

⇱ How to check whether a form or a control is untouched or not in Angular 10 ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to check whether a form or a control is untouched or not in Angular 10 ?

Last Updated : 23 Jul, 2025

In this article, we are going to check whether a form is untouched or not in Angular 10. untouched property is used to report that the control or the form is valid or not.

Syntax:

form.untouched

Return Value:

  • boolean: the boolean value to check whether a form is untouched or not.

NgModule: Module used by the untouched property is:

  • FormsModule

Approach: 

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

Example 1:

Output:

👁 Image

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

Comment

Explore