Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [angular-ngmodel]

Used in Angular.js - The ngModel directive binds an input, select, textarea (or custom form control) to a property on the scope using NgModelController, which is created and exposed by this directive.

angular-ngmodel
0 votes
1 answer
49 views

How to implement Optional chaining in ngModel using angular 18

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
-1 votes
1 answer
27 views

Setting object values to ng-model in angularjs

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
  • 383
1 vote
1 answer
45 views

2 ngModel return same value when use ControlValueAccessor in Angular

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

Angular unit test failed due to data in HTML NgModel binded to a service's property not updated

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
  • 48
1 vote
1 answer
76 views

Can't bind to 'ngModel' since it isn't a known property of 'input' error when trying to run Angular app

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
115 views

ngModel gives error even after importing FormModule

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
54 views

Angular - edit textbox in grid to update row value

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
754 views

Angular 17 "Can't bind to 'ngModel'" in Project without app.module.ts

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
215 views

*ngIf and ngmodel is not working on .html pages

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
5 votes
1 answer
6k views

Why ngModel doesn't works on the last version of Angular 17?

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
73 views

NG8003: No directive found with exportAs 'ngForm'. [plugin angular-compiler]

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
67 views

Can't bind ngModel.errors in condition ngSwitchCase

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
52 views

Angular 15: no ngModelGroupOptions for ngModelGroup in template driven forms?

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
103 views

ERROR NG8002 Cant bind to 'housingLocation' since it isn't a known property of 'app-housing-location'. (Angular)

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
191 views

ngModel not registering input value in Angular 16

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

15 30 50 per page
1
2 3 4 5
109