Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
29 views

I have implemented a simple custom control using Angular 21's new FormValueControl, see StackBlitz: export interface Test { booleanValue: boolean; stringValue: string; numberValue: number; } @...
Peter T.'s user avatar
  • 3,437
Best practices
0 votes
0 replies
32 views

When building a component that uses Signal Forms to edit an object, the object needs to be loaded and then updated into the formModel. I want to use a pure Signal/Resource solution as opposed to using ...
muttonUp's user avatar
  • 6,787
1 vote
2 answers
118 views

I have written a very simple component that implements FormValueControl and uses a signal form internally, see below: import { ChangeDetectionStrategy, Component, model } from '@angular/core'; import ...
Peter T.'s user avatar
  • 3,437
1 vote
2 answers
270 views

We're starting to look at Angular 21's new signal-based forms, but I can't find a clean way to define default values for each form field, especially when building forms for objects where multiple keys ...
Peter T.'s user avatar
  • 3,437
0 votes
0 answers
52 views

I have a complex set of objects that I need to edit. Basically, I have several objects at the top level, which may or may not be enabled, and each one has some complex sub-objects. The whole set of ...
Mike G's user avatar
  • 1,994
2 votes
2 answers
68 views

I'm using a Angular 20 with Reactive forms. Even after applying Validators.required to some controls, the form still includes empty string ("") or Null values when I log or submit form. I ...
Shantanu Patil's user avatar
2 votes
1 answer
63 views

I have a ControlValueAccessor implementation for custom form control: @Component({ ... providers: [ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => ...
malloc4k's user avatar
  • 2,007
2 votes
0 answers
67 views

I have a login form in Angular 16 with FormGroup validation. When I open the login page in Chrome, the browser auto-fills the saved email and password fields. The values are visible in the input ...
Saba Katamadze's user avatar
1 vote
1 answer
45 views

Working on a form with two templates. It seems that if we change template + setting form as disabled, the form is not disabling. But if we do it with separate thread via setTimeout, we have corrent ...
Дмитрий Маркитан's user avatar
1 vote
1 answer
43 views

I have a formly form with toggle field, I would like to detect when the user clicks on the toggle to disable it. here is what I have done so far: fields: { key: myToggle, ...
Ramses Kouam's user avatar
1 vote
0 answers
87 views

I am using angular 20 and angular material 20. I have a 2 forms at 2 stages that need to be transitioned between after a delay. I have a common animation I am using for when elements attach and detach....
Prithvi Emmanuel Machado's user avatar
0 votes
1 answer
87 views

I have succeeded in creating multiple forms based on the value from the dropdown list, but I am not able to save the data from the input element into database. If my dropdown list displays the value 5,...
Samal's user avatar
  • 135
1 vote
1 answer
50 views

I'm making a multi-step form, the issue I'm facing on step-one is the page is refreshing instead of moving to the next step after the form gets submitted my .html file goes like this: <form (...
Omar's user avatar
  • 83
0 votes
1 answer
99 views

I am working on an Angular component that manages a list of FormGroups. This list can be expanded and items can be deleted. But I also want the component to handle any kind of FormGroup. So for ...
GeirrBenayahu's user avatar
0 votes
2 answers
66 views

After adding blur validation to the angular material autocomplete dropdown, the search filter is not working properly when on change, instead filtering is happening on blur. Expected behaviour: If ...
Suresh Kumar Pasupulati's user avatar
2 votes
1 answer
95 views

I have to mange a relation for X*2=Y, there Y and Y are input fields. In the moment, I trigger by a change of the input field the related variable as X changed => Y=X*2 Y changed => X=Y/2 import ...
Juergen Gross's user avatar
1 vote
2 answers
87 views

I have a simple FormGroup in an Angular component: // app.component.ts, part 1 export class AppComponent implements OnInit { protected form = new FormGroup({ ctl: new FormControl(), arr: new ...
bleistift2's user avatar
1 vote
1 answer
61 views

In Angular 19, I need a function to run when a dropdown changes value. However, it doesn't happen when using setValue. html <select id="dropdown" [formControl]="dropdown" (...
Travis Heeter's user avatar
7 votes
5 answers
309 views

I want to filter user input when they type in an HTML text input. I can do that in native HTML/JavaScript as shown in the following demo: <form> <label for="tracking">...
nunoarruda's user avatar
  • 3,054
1 vote
1 answer
80 views

Using MatSelect and working on UTs. Post selecting a option via test harness, not able to see ngModel variable binding working. Here is the html snippet: <mat-form-field class="dropdown-...
Arnab Mukherjee's user avatar
1 vote
1 answer
76 views

Like it says, I want to add an item to the middle of a FormArray. So, I have a FormArray and every FormArray item has a button to add a new FormArray item. However, it currently always adds it to ...
HisDivineShadow's user avatar
2 votes
1 answer
197 views

I have a list of signal type. searchModelDriver: string = ''; driverList = signal<any[]>([ { fullName: 'test1' }, { fullName: 'test2' }, { fullName: 'test3' }, ]) I also have a ...
davood beheshti's user avatar
1 vote
1 answer
69 views

I have a simple yet perplexing problem. I have a reactive form and I want to set validation programatically. this.boatForm.get('boatType').setValidators(Validators.required); this.boatForm....
Rob Mousley's user avatar
1 vote
2 answers
102 views

What is the relationship of NG_VALUE_ACCESSOR, ControlValueAccessor interface in angular? Is if I have the following statement (provide:NG_VALUE_ACCESSOR) @Component({ selector: 'rm-header', ...
user1169587's user avatar
  • 1,448
1 vote
2 answers
86 views

I have host component and inside it there's three components(children). First child has a form with no submit button, while second child has again a form with submit button, Plus third child has just ...
Omar's user avatar
  • 83
1 vote
1 answer
59 views

I have element in a FormGroup, let say const langs = ['en', 'de'] form = new FormGroup({ languages: [langs, [Validators.required]] descriptions: initChildGroup(langs) }) initChildGroup(langs) { ...
Raphaël Balet's user avatar
1 vote
1 answer
51 views

I try to share data from Parent to Child and Child to Parent, with variable in template PARENT "mensaje", the template receive this input and show in the input text Child, but when I type ...
ALEXANDER JOSE TAYPE LUYO's user avatar
2 votes
1 answer
47 views

Tagid and typename textboxes are currently holding routed values from customer component, but are not being saved into the database when I clicked on save button. In other words, routing the dynamic ...
Samal's user avatar
  • 135
2 votes
1 answer
42 views

All of the values in the textboxes are saving correctly into the database except remark field which is displaying null. From my shared codes below, when l checked on score radio button, remark textbox ...
Samal's user avatar
  • 135
1 vote
2 answers
84 views

I have the following form with a set of radio buttons in each section I can only select one of the buttons at any given time. It appears that they do not have unique names. The form is dynamically ...
Mark Hill's user avatar
  • 1,851
0 votes
1 answer
47 views

In Angular, [(ngModel)]="abc", I know this mean two way binding, change value abc in model (ts) will reflect in view (html), change the view value will update the value in model, as tested ...
user1169587's user avatar
  • 1,448
2 votes
2 answers
691 views

I have an Angular dropdown component (CustomDropdownComponent) that receives a list of options and a selected value from its parent component via @Input(). The parent also listens for selection ...
David Küng's user avatar
0 votes
1 answer
106 views

I am trying to import the FormsModule but i get this error 'FormsModule' does not appear to be an NgModule class. here is my code import { BrowserModule } from '@angular/platform-browser'; import { ...
isabille's user avatar
2 votes
1 answer
2k views

I have set up a formbuilder with a number of inputs components, each of which uses a control value accessor mixin. Where I've got to is that the input components render OK, the user inputs trigger the ...
monkey's user avatar
  • 1,733
1 vote
1 answer
60 views

I have one angular component a I want to simplify this Rx.js functions to have one only one subscribe and not have subscrition in subsribe. Is it possible? Otherwise this Rx.js has task debounce ...
Orist Timemaker's user avatar
2 votes
1 answer
32 views

I am trying to build a LMS using Angular but I have some issues with Angular forms. I want to be able to add dynamically modules to a given course but also to add dynamically any sort of the 3 types ...
Oreoyona's user avatar
0 votes
1 answer
49 views

I'm experimenting with Angular modules, and I'm currently working with FormModule. I noticed that once FormModule is imported into a component, the <form/> submit event no longer refreshes the ...
Freezy's user avatar
  • 151
1 vote
1 answer
82 views

I’m preparing a presentation on the topic of Angular state management for my colleagues. The main focus of the talk is creating “dumb” components which accept inputs from parent components, render ...
jgosar's user avatar
  • 2,563
1 vote
1 answer
966 views

I am learning angular and trying to create reactive form for user authentification. To indicate if my firm work I added {{ LoginForm.value | json }. But it seems not to work. When I type something ...
Михайло Митровці's user avatar
1 vote
4 answers
697 views

I'm building a form and I'm confused if I should use mat-form-field tag from angular material alone without form tag, or I should wrapp everything with form html tag like the following <form> &...
Omar's user avatar
  • 83
0 votes
1 answer
49 views

i have a very strange problem where i am using ion-datetime component on component inside a model component. From this component, I call another component in a model that also has an ion-datetime ...
Moblize IT's user avatar
  • 1,338
-1 votes
1 answer
597 views

I have a form and researching here discovered a way to check whether the form is valid or not and to put your data in the URL when submitted. However, if you open another page with the parameters in ...
ViniciusDevelopment's user avatar
1 vote
1 answer
49 views

In our Angular project we are using @ngneat/error-tailor for showing form errors: We are interested in showing the error messages when the controls are touched, feature which is requested in this ...
menrodriguez's user avatar
1 vote
1 answer
270 views

I want to implement my own Property directive which should act similar to the existing FormControlName directive. It should use the name of the given Property to act as if it where given as ...
wertzui's user avatar
  • 5,780
1 vote
1 answer
223 views

I built a shared input component in Angular using Control Value Accessor interface. The input itself works but validation doesn't get updated when I change the value within the input. Here is the ...
Dominic's user avatar
  • 187
0 votes
0 answers
49 views

I having issue multiple validation is not working properly. For example validate1 method checking input is empty or not , validation2 method checking name1 and name2 value are equal or not equal. ...
Angular Guru's user avatar
0 votes
1 answer
243 views

I try to disable and enable a angular material input field in typescript. I found only solutions where the value is set on creation time or in html like inputField = new FormControl({ value: '', ...
parascus's user avatar
  • 1,269
1 vote
1 answer
278 views

This is my first time trying an async form validator. It is attached at to my form's asyncValidators, it's firing appropriately, the correct value (object or null) is being returned ... but the form ...
Emery Noel's user avatar
1 vote
1 answer
483 views

After attempting to run a migration for the new input API (with --insert-todos enabled) my custom Text Input component looks like this: text-input.component.ts export class TextInputComponent ...
Asad Koths's user avatar
2 votes
1 answer
140 views

I'm currently building custom month picker component using the Datepicker from angular material library.The month picker should be able to use with reactive form like this. app.component.ts form = ...
bri zhao's user avatar

1
2 3 4 5
43