1,628 questions
2 votes
2 answers
175 views
Angular FormControlName vs NgModel Binding
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 ...
1 vote
1 answer
71 views
Angular Nested Form ngModel meaning
Given the following code snippet: @Component({ selector: 'app-editor', templateUrl: './editor.component.html', styleUrls: ['./editor.component.scss'], providers: [{ provide: ...
0 votes
1 answer
101 views
Ionic input ngModel two way Data Binding or Add number format
<ion-col size="4"> <ion-input class="input-field" style="--padding-end: 20px; text-align: end;" [(ngModel)]="discountPercent" ...
0 votes
1 answer
385 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 ...
0 votes
1 answer
36 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(...
1 vote
1 answer
74 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()"...
1 vote
1 answer
40 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 ...
1 vote
1 answer
145 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=&...
0 votes
1 answer
898 views
i cannot import FormsModule in task.component.ts file under task folder in angular 18.0.4 [closed]
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)" ....
0 votes
1 answer
141 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="...
0 votes
2 answers
149 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 ...
1 vote
1 answer
3k 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 ...
1 vote
1 answer
695 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 ...
7 votes
2 answers
17k 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>...
0 votes
2 answers
173 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 ...