Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
177 views

I have a general question using Angular's FormgroupName or NgModel. The Docs I am reading say NgModel was deprecated in Version 6, but it is still available in 17/18, today's current version. The ...
Graham's user avatar
  • 306
1 vote
1 answer
71 views

Given the following code snippet: @Component({ selector: 'app-editor', templateUrl: './editor.component.html', styleUrls: ['./editor.component.scss'], providers: [{ provide: ...
user1169587's user avatar
  • 1,448
0 votes
1 answer
101 views

<ion-col size="4"> <ion-input class="input-field" style="--padding-end: 20px; text-align: end;" [(ngModel)]="discountPercent" ...
Emerald's user avatar
0 votes
1 answer
396 views

I have scenario in my project that a common shared service having a common variable (object) to store nested objects. I have to access and update its value in html using NgModel. Optional-chaining ...
Anupam Sharma's user avatar
0 votes
1 answer
36 views

I am using angularjs 1st version to display values on multiple text fields using ng-model. I have an object like this $scope.fieldValues = { keys: Object.keys(subkeys), values: Object.values(...
User's user avatar
  • 385
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
1 answer
40 views

I have a LoginPageComponent with email and password fields whose values areNgModel binded to LoginServices's property loginInfo. LoginPageComponent also has Login button, which is disabled when ...
Dat Le's user avatar
  • 58
1 vote
1 answer
145 views

I have this input field in the html file of my Angular component: <input [(ngModel)]="bookRequest.title" type="text" class="form-control" id="title" name=&...
dqdq dqsss's user avatar
0 votes
1 answer
898 views

i cannot import FormsModule in task.component.ts file under task folder .Due to unable to solve error as "Can't bind to 'ngModel' since it isn't a known property of 'input'.ngtsc(-998002)" ....
Mani's user avatar
  • 41
0 votes
1 answer
141 views

This is the HTML code <form (submit)="agregarCliente()"> <div> <label for="nombre">Nombre:</label> <input type="text" id="...
Imanol Espejo's user avatar
0 votes
2 answers
149 views

I'm trying to give user the ability to update the quantity of their selection before product checkout. The code below allows only 1 character in the textbox. What changes can I make to allow user ...
Blah Foo's user avatar
1 vote
1 answer
3k views

I am currently developing an Angular 17 Project which was created with standalone components as default and I am always running into this error: "Can't bind to 'ngModel' since it isn't a known ...
user24538254's user avatar
1 vote
1 answer
698 views

I'm using following versions in Angular, Angular CLI: 17.3.4, Node: 20.9.0, Package Manager: npm 10.5.2. When I'm using *ngIf or ngmodel on .html pages in a component, I'm getting following error ...
toshi456's user avatar
  • 223
7 votes
2 answers
17k views

I am trying to make a form in my angular app, but when i want to implement ngModel on my form : <form (ngSubmit)="onSignUp()" #signupForm="ngForm"> <h1>...
Makil Uspn's user avatar
0 votes
2 answers
174 views

I was trying to run my website, but when I try to build ng, I get this error: Prerendered 0 static routes. Application bundle generation failed. [5.115 seconds] ✘ [ERROR] NG8003: No directive found ...
mokhtar ben ftima's user avatar
2 votes
1 answer
109 views

Can't bind ngModel.errors in condition of *ngSwitchCase. But if i do this on *ngIf, it's work fine for me. I wan't make a structure of displaying different's error's in condition of *ngSwitchCase. ...
Vlad's user avatar
  • 23
2 votes
0 answers
129 views

I am trying to implement template driven form with custom validations. In it, I want to validate the controls which are under my ngModelGroup on blur instead of triggering the validation as I type/...
Log Up's user avatar
  • 21
-1 votes
1 answer
235 views

keep getting the samen problem, everytime i swap my components from being stanalone, to joining hthem in my app.module, they give these errors : Link to the repository : https://github.com/JariToni/...
user23310071's user avatar
1 vote
1 answer
368 views

So I am working on this code which uses Angular 16. For some reason when I submit the form which is supposed to console log the info object, the values inside the object remain empty which also causes ...
tevpev123's user avatar
1 vote
0 answers
161 views

I have encountered this problem. My code seems correct, but I don't know where the error is. This is Loginapp.module.ts import { NgModule } from '@angular/core'; import { LoginRoutingModule } from './...
Lekh Raj Awasthi's user avatar
0 votes
1 answer
388 views

iam new with Angular and i try to create a form as ngForm. My Problem is when the programme is succesfully compiled the form isnt displayed on my site. I think that i have an issue with the "...
JB3286's user avatar
  • 1
0 votes
1 answer
67 views

I am working on a wizard form. The form have multiple steps (Personal, address...). All of this steps represents child component wrapped in a parent component that use NgRx Store to save the data ...
Adrian Giurgiu's user avatar
2 votes
1 answer
666 views

I have a list of PrimeNG checkboxes. I have an array binded to it with ngModel called selectedItems. I also have initially checked items in that array. I have a situation where I add items to the ...
binga58's user avatar
  • 89
0 votes
0 answers
93 views

here is the component.html <input [(ngModel)]="email" (keyup.enter)="onKeyUp()"> here is the error: Can't bind to 'ngModel' since it isn't a known property of 'input'. here ...
Jasmine's user avatar
2 votes
1 answer
84 views

UPDATE: I have reproduced the error on Stackblitz for those who want to interact with the code. I have the following JSON data: related_contacts: [ { "id": 1, "...
CoderS's user avatar
  • 153
0 votes
1 answer
58 views

I want to use [(ngModel)] bound to a 2d boolean array as I have a nested ngFor loop in the html. I want to populate this array dynamically as data will be coming from database but as the html starts ...
Shekhar Mishra's user avatar
0 votes
0 answers
52 views

My question is an extension of the following Stack Overflow question: Using ngModel inside an ngFor loop I have implemented a similar approach to this and it works fine. However, the form that I am ...
aaaaaaaaaron_g's user avatar
0 votes
0 answers
364 views

I can do the following in HTML: <input type="text" [(ngModel)]="..." (ngModelChange)="..." /> Now I have to set ngModel and ngModelChange ...
BennoDual's user avatar
  • 6,339
0 votes
2 answers
545 views

This is my code and I get "No directive found with exportAs 'ngModel'." error message. I've tried adding FormsModule and ReactiveFormsModule to my app.module.ts (declarations) but still have ...
Norbert_'s user avatar
0 votes
0 answers
93 views

I am trying to understand how ngModel directives work in Angular. I ran into this simple line of code, which makes absolutely no sense to me and I'll explain why : <input (ngModel)="userName&...
idash's user avatar
  • 29
1 vote
2 answers
2k views

I would like to to style a select element in an Angular component differently, when a specific option (with an inactive attribute) is selected. My component look like this: class ComponentWithSelect { ...
karlitos's user avatar
  • 1,692
0 votes
2 answers
1k views

I am using ionic 7 with angular to build social app and I want to use two way binding to get the data from the input field but ngModel is not recognise Here is the html content: <div class="...
Xyz.WebDeveloper's user avatar
0 votes
3 answers
168 views

In this Angular example, the ngModel binding does not work. Can someone let me understand why? and if so, What is the best way to do it? (note that the binding uses a dynamic key) ts: constructor() { ...
user3345721's user avatar
0 votes
2 answers
1k views

I am trying to generate input fields programmatically because there are a whole lot of them. Unfortunately their database names are != to the display names. Therefor i can't just pipe | keyvalue. ...
MisteriosM's user avatar
0 votes
1 answer
363 views

<form> <div class="form-group"> <label for="firstName">First Name</label> <input required ngModel name="firstName" #...
Abhijeet Ranade's user avatar
0 votes
1 answer
222 views

I have the following type: interface Video { metaData?: { tags?: { TIT2: string; }; }; } In my template <form class="meta meta__tags" *ngIf="video.metaData?.tags&...
striderhobbit's user avatar
0 votes
1 answer
77 views

I am trying to create multiple checkbox fields using ngFor. I have an array which consists of project ids, names and types. So, now I am trying to create multiple input checkbox fields according to ...
saurav.rox's user avatar
0 votes
1 answer
315 views

I created a live example on Stackblitz with dropdown from primeng. My issue is that whenever I change the value from the dropdown without ng-template it works fine and all dropdowns are modified, but ...
manjiro sano's user avatar
0 votes
1 answer
166 views

When page load first time at that time I am displaying grid view with current user details. Now in that I have added one checkbox. So when user click on that checkbox then that grid should updated ...
Vasi's user avatar
  • 39
0 votes
0 answers
123 views

For a role assignment website, it is possible to assign a role to a user for a specific application. These roles can have some linked "entities", such as Brands. The content of such entities ...
NiAu's user avatar
  • 657
0 votes
1 answer
79 views

Im trying to implement in an app, a unit converter from mm to inches and viceversa. This is part of a larger design app and the idea is that the user can work in mm-inch and use a button to change the ...
rockstiff's user avatar
  • 383
2 votes
1 answer
3k views

I have used ngModel and formControlName together so I am getting warning in console. I want to remove that warning but I am not able to figure out if I am removing ngModel in it than with what should ...
Abhishek's user avatar
0 votes
0 answers
47 views

I want to add a character limit and I did this: but it shows an error by "invalid" last line <mat-form-field class="fbinput" appearance="outline" style="white-...
SH Dgl's user avatar
  • 1
0 votes
1 answer
674 views

I have two components first and second. From the second component, I am calling the first component. In the first component, I have a matslider module and I want to get that slider on/off status to my ...
marshmellow's user avatar
1 vote
0 answers
265 views

Problem: I have a form, inside the form all fields are submitted correctly, however, the chips(aka tags in other frameworks) field(for technologies) does not get submitted. HTML: <!--MAIN CONTAINER-...
Arturo Lozano's user avatar
0 votes
1 answer
320 views

Here's my code for showing yes or no based on a SQL database. What I am trying to achieve is to update the SQL database based on the user's selection again. When I use ngModel to update a SQL database,...
user avatar
0 votes
1 answer
681 views

I'm working on Angular. I made a checkbox list with a specific ngModel value for each checkbox. In order to do that, I built a JSON in my TS component file. The JSON looks like this : test = [ {...
Julien's user avatar
  • 629
0 votes
1 answer
742 views

Background: I am trying to make a three-layered form front-end, the user should be able to fill out the basic details as well as the list object with the title. The list in its entirety needs to be an ...
Kevin's user avatar
  • 187
2 votes
3 answers
2k views

I have encountered very weird behavior using angular model when user selects from an option. I will provide screenshots + code snippets. In summary, I am getting undefined for property that is ...
JCP's user avatar
  • 189
0 votes
0 answers
344 views

I have the following error although I imported the FormsModule in app.module.ts ans I don't know how to solve it.Here is an image of the error I tried to import everything related to forms but the ...
A A's user avatar
  • 1

1
2 3 4 5
33