Top "Angular-forms" questions

Questions related to Angular template or reactive forms.

Angular2 Reactive Forms formControl for radio buttons

I'm building a form in Angular with Reactive Forms. I'm using the FormBuilder to make a group of fields. For …

angular angular-reactive-forms angular-forms
Expected validator to return Promise or Observable

Im trying to do a custom validation on Angular 5 but I'm facing the following error Expected validator to return Promise …

javascript angular angular5 angular-forms angular-validation
Date and Currency validation in Angular (4)

I am new to Angular. I am using angular 4 reactive forms and figured out how to perform custom validations. Following …

angular typescript angular-forms
No provider for ControlContainer - Angular 5

I am converting a purchased, third-party template into an Angular 5 app, and just ran into an error. I am very …

angular angular5 angular-components angular-forms
Limit input field to two decimal places - Angular 5

The code is as follows <input type="number" class="form-control" value="" name="cost_price" #name="ngModel" [(ngModel)]="item.cost_…

angular typescript angular-forms
Differences between value and ngValue in Angular 5

Today I realized about an unexpected (for me) behaviour of the reactive forms in Angular 5. The server was receiving from …

angular angular-forms
Angular - Dynamically add/remove validators

I have a FormGroup defined like below: this.businessFormGroup: this.fb.group({ 'businessType': ['', Validators.required], 'description': ['', Validators.compose([…

angular angular-forms angular-validation
How to change the date format in the datepicker of Angular ngx-bootstrap inside a form

Using ngx-bootstrap Datepicker in an Angular 4 application, I know that normally you can specify the date format this way: <…

angular datepicker angular2-ngmodel angular-forms ngx-bootstrap
FormGroup ERROR TypeError: Cannot read property 'get' of undefined

I am trying to get a value from my form and I am getting this error: ERROR TypeError: Cannot read …

angular angular-forms