Top "Angular-forms" questions

Questions related to Angular template or reactive forms.

Angular error: "Can't bind to 'ngModel' since it isn't a known property of 'input'"

I'm using Angular 4 and I am getting an error in the console: Can't bind to 'ngModel' since it isn't a …

angular typescript angular-ngmodel angular-forms
Angular2 If ngModel is used within a form tag, either the name attribute must be set or the form

I am getting this error from Angular 2 core.umd.js:5995 EXCEPTION: Uncaught (in promise): Error: Error in app/model_exposure_…

angular angular-forms
Can't bind to 'formControl' since it isn't a known property of 'input' - Angular2 Material Autocomplete issue

I am trying to use Angular Material Autocomplete component in my Angular 2 project. I added the following to my template. &…

angular typescript angular-material2 angular-forms
Set focus on <input> element

I am working a front-end application with Angular 5, and I need to have a search box hidden, but on click …

angular angular5 angular-forms
Confirm password validation in Angular 6

I want to perform password and confirm password validations using material components only,and an error message below the confirm …

angular angular-material angular-forms
Cannot find control with name: formControlName in angular reactive form

I found this problem in many questions in stackoverflow but no luck. Please help me for figuring out what I …

angular typescript angular-forms
How to use Angular4 to set focus by element id

I am new to Angular, and am trying to use it to set focus on an input with the id "…

angular angular-forms
Disable Angular 5 Input fields correct way

I have a FormGroup that was created like that: form: FormGroup; constructor(private _formBuilder: FormBuilder) { } this.form = this._formBuilder.group({ …

javascript html angular angular-forms
Angular 4 - using objects for option values in a select list

I know that similar questions have been asked, but I've found none with a good answer. I want to create …

angular angular-forms
Angular 2: Form submission canceled because the form is not connected

I have a modal that contains a form, when the modal is destroyed I get the following error in the …

javascript html angular forms angular-forms