Chris Straw
SHARE:

Loop through Angular Reactive Form Controls

Spread the love
    for (const c in this.searchForm.controls) {
      if (this.searchForm.controls.hasOwnProperty(c) && this.searchForm.controls.value) {
        const value = this.searchForm.controls.value;
      }
    }