Skip to main content
3 votes
3 answers
282 views

I have a ControlValueAccesor with one FormControl. I need to create a new observable from the control's valueChanges and use it in the template via AsyncPipe. So in CVA's writeValue I update the form ...
menrodriguez's user avatar
2 votes
2 answers
248 views

I'm working on my first custom control in Angular (16), for a Reactive Form, that contains a slider and an input. If the slider is true, then the input should have a value. If it is not, then the ...
James Skemp's user avatar
  • 8,611
1 vote
2 answers
999 views

I have this component implementing ControlValueAccessor and holding the internal state in a signal value: export class InputComponent implements ControlValueAccessor { // internal state ...
Wolf359's user avatar
  • 2,737
1 vote
1 answer
74 views

I have component CustomInputComponent <div> <input #input="ngModel" name="input" [(ngModel)]="value" (ngModelChange)="onInputChange()"...
TCNJK's user avatar
  • 9
1 vote
0 answers
132 views

I would like to render an angular form dynamically, based on a json schema object that describes the fields. I would like to render multiple types of fields, but for this example I will only use text ...
Theo Stefou's user avatar
1 vote
1 answer
332 views

I have a directive in Angular that should read it's host element's input selectionStart, selectionEnd values. I do this in my custom directive: @Directive({ selector: '[inputBehavior]', }) export ...
Arto Avag's user avatar
  • 171
0 votes
0 answers
359 views

This is my cutom dropdown search control value accessor . issue is when i set value in form control thats not getting selected in below control @Component({ selector: 'app-dropdown-search', ...
lowzz z's user avatar
1 vote
1 answer
438 views

For now I am using @Input() to pass error messages from parent to child component that implements ControlValueAccessor. I would like to know is there better way of passing error messages. Please guide ...
binder's user avatar
  • 37
0 votes
1 answer
282 views

When implementing a ControlValueAccessor I need to dynamically display some content based on whether or not the control is required. I know I can do this to get the control: readonly #control = ...
Gargoyle's user avatar
  • 10.5k
0 votes
1 answer
235 views

We have a 2 components. Lets call them parent and child and both of them implements ControlValueAccessor. Parent form is: this.formBuilder.group({ children: this.formBuilder.array([]) }) Child ...
Mr Nobody's user avatar
3 votes
1 answer
280 views

PROBLEM: Produces error "No directive found with exportAs 'ngForm'" When accessing this.form in App.component.ts I would like to have an instance of the FromGroupControl instead of the ...
Louis Beullens's user avatar
0 votes
2 answers
301 views

I have a custom form control where I implemented the ControlValueAccessor interface, everything is working correctly. However, I want to make a change to the component based on validations, for ...
Matheus Alencar's user avatar
0 votes
0 answers
155 views

I am trying to create a custom phone input component by implementing ControlValueAccessor and Validator in Angular, but I have an issue with mat-error not triggering. The FormGroup seems to work, as ...
dialeev's user avatar
1 vote
1 answer
1k views

I want to create custom component for input text but I don't know how can I bind validation of each input field to custom component. Is there any way to set errors of each field as array of objects ...
user21636825's user avatar
1 vote
0 answers
64 views

I want to create custom component for input text but I don't know how can I bind validation of each input field to custom component. Is there any way to set errors of each field as array of objects ...
user17456983's user avatar

15 30 50 per page