Skip to main content
2 votes
2 answers
127 views

I have created own directive for adding validation and removing validation based input parameters of directive. I am getting error when loading and form field value changing validator is not working ...
Angular Guru's user avatar
1 vote
2 answers
75 views

I have a form: <input type="password" id="password" name="password" ngModel #password="ngModel" ...
user28273827332's user avatar
1 vote
1 answer
152 views

I have two form controls as min and max. At the beginning min has a default value of 1 and max is empty. I want that max be always greater than min, so I defined a custom validator, which works nicely....
user6781's user avatar
  • 621
1 vote
2 answers
90 views

I have two mandatory form controls as: minimumCharacters and maximumCharacters. I want to show an error, if the given maximumCharacters is smaller than the given minimumCharacters. Here is how I have ...
user6781's user avatar
  • 621
1 vote
2 answers
102 views

I have a dynamic reactive angular form which builds forms and populates questions inside it dynamically according to questions types retrieved from the database. the problem is the required validation ...
Mohammad AM's user avatar
1 vote
3 answers
176 views

I'm creating dynamic fields <input class="form-control-lg form-control" placeholder="{{data.DisplayName}}" formControlName="{{data.labelName}}" type="text" ...
user3653474's user avatar
  • 3,872
1 vote
1 answer
310 views

I'm trying to create a form with an input using chips to send a message to various emails. I have it almost functional but I don't know how to properly show the message error when you write an invalid ...
Jorge Castillo's user avatar
1 vote
2 answers
651 views

I'm building an Angular Reactive Form and I have an input of type number. I have provided Validators.min(0) to the FormControl, however when I focus the input and scrolls down or holds the Arrow down ...
Martin's user avatar
  • 66
0 votes
4 answers
1k views

Is there a way for find out if an Angular FormControl has a validator and its value? e.g. If I had a form control setup like this: testControl: new FormControl(null, [Validators.required, Validators....
Sun's user avatar
  • 4,808
0 votes
2 answers
946 views

I' ve this FormGroup: this.fb.group({ a: ["", Validators.required], b: ["", Validators.required], c: [{value: "", disabled: true}, Validators.required] }); ...
Cristian De Vecchi's user avatar
1 vote
1 answer
298 views

The validator works perfectly with required. But I need the unique validator, to check if the labels has duplicate names. When I switch to unique in inventory.component.ts the table isn't even showing ...
AAAA's user avatar
  • 35
1 vote
2 answers
107 views

This code in my form-validators.ts: console.log('password:', password?.value); console.log('confirmPwd:', confirmPwd?.value); always fetched me undefined, causing the custom validation (...
L1N3NM3L0N's user avatar
-1 votes
3 answers
2k views

I have this form group defined get createItem(): FormGroup { return this.formBuilder.group({ name: ['', Validators.required], email: ['', Validators.required], mobile: ['', ...
user3653474's user avatar
  • 3,872
1 vote
1 answer
237 views

I have this code to check if both passwords match, however, it's not working as intended. I've tried what I've seen in some older questions but with no success. I have this in my component's template: ...
Tony Ortega's user avatar
0 votes
2 answers
2k views

I have this editor <div id="editor"></div> setting its value to form control. this.FrmGroup.get("name").setValue(this.quill.root.innerHTML)` <div *ngIf="...
user3653474's user avatar
  • 3,872

15 30 50 per page
1
2 3 4 5
29