Questions tagged [ngmodel]

Use ngmodel for questions related to the ng-model AngularJS directive.

The ngmodel directive is used for two-way data binding of form controls. It has a built-in controller named NgModelController which exposes and API which can be used for handling state changes and performing validation.

References

386 questions
-2
votes
1 answer

Adding a [(ngModel)] to a component tag

Good day, Im new to Angular and i would like to ask if i can use ngModel in this format in my above code to get…
Chris
  • 5
  • 4
-2
votes
1 answer

Angular 8 Error: Cannot read property 'attributeSourceSystem' of undefined

I am new to angular and i am struggling a bit with typeError Cannot read property 'attributeSourceSystem' of undefined Html Content
Harsha Mullangi
  • 474
  • 1
  • 6
  • 27
-2
votes
2 answers

Keep ng-model in array and set values using loop AngularJs

Scenario I have scenario where I will parse the document then I will get as a JSON output in key and value format, In key it will contains headings of document and Value will contains corresponding section of the heading. Now I would like to bind…
-2
votes
1 answer

ngModel radio buton miss behaving

I am having issues with radio button with ngModel when I am populating with ngFor Radio button selection is misbehaving In the console.log of Form, i see the value of gender is "it" enter image description here What am I doing wrong Here is my…
-2
votes
3 answers

Why I see only private class propery in ngModel

When I use class with private properties in a model and getter/setter I have access to the private property only but not the public one with getter/setter.. https://stackblitz.com/edit/angular-hx3t7g Why I have '_r' in the ngModel instead of 'r'?…
-2
votes
1 answer

How can I use *ngSwitchWhen to typescript?

I am working on Ionic2 + Angular2, and I want to use segment, so I used ngSwitchWhen, but it doesn't work. An error occurred. How can I use this? Why it does not work? Here is the error message.
Rachel
  • 27
  • 7
-2
votes
1 answer

Angular2 manipulate ngModel view

I would like to manipulate ngModel view like you can do $formatter / $parser in Angular 1. My original idea is to do the following and with this…
taropoo
  • 110
  • 2
  • 8
-3
votes
1 answer

How do fix Error in angular code two binding

An error appear when using two binding TS2339: Property 'asd' does not exist on type 'Users Component' Note :i add FormsModule in App. Module page. So i don't know what the problem??
-3
votes
2 answers

ngModel does not get the value of the input

PLEASE HELP. I got this lines of code on my app, the value of the input here comes from the firebase database. That works as the value is shown when I ran the app. My problem is when i console.log(attendance.studentName). It doesnt get the value. It…
skrrrrr
  • 29
  • 10
-3
votes
1 answer

How to make ngModel available between components

I am seriously getting mad. I have tried everything. FormsModules,ReactiveForms,FORMDIRECTIVES,Input,Output i've been searching everywhere on how to make ngModel available between components. I am trying to show in an h1 tag the value which is being…
Raptrozz
  • 3
  • 5
-4
votes
1 answer

what is ([ngModel]) in angular? Is it reverse version of [(ngModel)]?

I konw what is two way data binding, but there is also ([ngModel]), It is reverse version of [(ngModel)]? then what is ([ngModel])? how it works?
1 2 3
25
26