Linked Questions

165 votes
13 answers
384k views

No value accessor for form control [duplicate]

I'm using Angular2-rc5, and I'm currently getting an error on my login page. I'm trying to make a form but the console throws exceptions telling me that it can't find my formcontrolls even though I ...
AJ_'s user avatar
  • 4,009
17 votes
2 answers
38k views

Angular FormArray: Cannot find control with path [duplicate]

I trying to build an Angular Reactive form where an account can add many students. The form seems to work. When you hit Add Student it creates a new student but you check the console it says ...
Ty Tran's user avatar
  • 173
-1 votes
2 answers
17k views

No value accessor for form control with name: '' [duplicate]

ERROR Error: No value accessor for form control with name: 'sNo' it is not finding formCOntrolName in my DOM component side this.form = new FormGroup({ 'sNo': new FormControl, 'question': new ...
Adeel's user avatar
  • 143
2 votes
2 answers
4k views

No value accessor for form control with name: [duplicate]

I continue to get this error regardless of what I try. html: <form id="newCommittee" [formGroup]="newCommittee" > <Input placeholder="Committee Name" class="col-4" formControlName=...
Chip's user avatar
  • 268
1 vote
1 answer
451 views

How to create component that can support ngModel and ngControl directives [duplicate]

To get access to NgControl in my component I create constructor: NgControl _cd; MyDateEditComponent(@Self() @Optional() this._cd); I want use my component like this: <my-date-edit [(ngModel)]="...
Cododoc's user avatar
  • 135
54 votes
8 answers
102k views

How can I pass the FormGroup of a parent component to its child component using the current Form API

I would like to pass the parent component's FormGroup to its child for the purpose of displaying an error-message using the child. Given the following parent: parent.component.ts import { Component, ...
st_clair_clarke's user avatar
45 votes
5 answers
32k views

Angular 2 creating reactive forms with nested components

My requirement is that I need to create a form with nested components. I am creating components for each form field means for textbox there will be one component, for radio button there will be ...
Mahesh Saibalwar's user avatar
12 votes
3 answers
35k views

ANGULAR 4 Base64 Upload Component

I am new to Angular. I am using Angular 4. Where there is a requirement to send the base64 Image as one of the model member to the web api. Is there a Angular component or directive for the that ...
Vijayavel's user avatar
  • 123
8 votes
2 answers
8k views

Angular Drag drop with formArray

I have 2 arrays. I'm implementing an Angular drag drop and I want to use FormArray to save the array in which the element was dropped into. The problem is that I can't apply formcontrol to the div ...
Ali Turab Abbasi's user avatar
20 votes
4 answers
4k views

Angular 2 - large scale application forms' handling

At the company I’m working for, we’re developing a large scale application with multiple forms, that the user needs to fill in in order to register for our program. When all questions have been ...
Manolis's user avatar
  • 891
6 votes
2 answers
17k views

No value accessor for form control with name: 'eventGraphicAttachment'

I am working on an Angular project and have some errors when building the project. I am using the material design. But I am not sure how can I solve this problem. Please have a look and help me. This ...
user avatar
6 votes
4 answers
6k views

Error 'No value accessor for form control with name' with ionic 5 and Angular 9 using reactive form

I'm working with ionic 5 and Angular 9. I'm trying to create a reactive form but I got the error 'No value accessor for form control with name: 'lastname''. Here is my code : export class ...
Alyaura's user avatar
  • 61
3 votes
1 answer
5k views

No value accessor for form control with name: 'recaptchaReactive'

Working from this example https://stackblitz.com/edit/ng-recaptcha-example?file=src%2Fapp%2Fapp.component.ts May be related to: Angular4 - No value accessor for form control In my form, I have the ...
Bluebaron's user avatar
  • 2,526
1 vote
2 answers
11k views

formControlName to be used for div

This is my reactive form object this.form = this.formBuilder.group({ ordSearch: ['', Validators.required], fromDate: ['', Validators.required], toDate: ['', Validators....
mano manoj's user avatar
1 vote
2 answers
5k views

Can't bind to 'formControl' since it isn't a known property of 'div' - Angular 2

I am clearly importing the ReactiveFormsModule, but I still get the error app.module.ts import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/...
DGmip's user avatar
  • 312

15 30 50 per page