angular2-form-validation Questions

4

I cannot find out how to use the required option in ng-select. I have tried this: <ng-select #skills required [ngClass]="{ 'is-invalid': f.submitted && skills.invalid }" [...
Handcraft asked 22/11, 2018 at 14:6

5

Solved

I'm using angular 4 forms and I have some fields. and first_name, last_name and company are really important for me. I want to force the user to fill one of these 3 fields. how can I do it? here ...
Manchineel asked 26/4, 2018 at 7:15

2

I have angular form. When I open the app, the console is log in fooValidation four times without me don't nothing. in fooValidation in fooValidation in fooValidation in fooValidation Why? This is ...

7

Solved

I have Angular form that is built with help of FormBuilder. Form contains a FormArray which has as many fields as user wants. I've set validator for fields this.fb.array([this.fb.control('', Valida...

1

Solved

I've already know that input items inside a FormControl can be mark dirt or touched by calling any of the following methods (maybe more): group.markAsTouched(); form.get('control-name').markAsTouch...
1

© 2022 - 2024 — McMap. All rights reserved.