Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
2 answers
2k views

AngularJS ng-value and ng-model do not work together [duplicate]

I was trying to give a value to textfield using ngvalue and textarea has that value but it when I submit it, it recognized as textarea is empty. <textarea ng-value="main.record.basic_info....
user avatar
0 votes
1 answer
1k views

How to make ng-model work with ng-value?

I have this input: <input type="number" id="totWeight" ng-model="totWeight" ng-value="getTotWeight()" /> which value is calculated based on other fields, but it can also be inserted manually ...
Tomo's user avatar
  • 432
1 vote
1 answer
1k views

ng-model not working for angular radio buttons with JSON object as values

I have a simple filter where I want to select a particular value and type and make other calls using that. Here is a close representation of what I have in my view (I am not using ng-repeat to create ...
Vivek V Dwivedi's user avatar
1 vote
3 answers
2k views

how to use ng-init with ng-repeat

I am creating a web app in which i am using dropdown and angularjs for updating my database, this is my syntax of my dropdownlist <select ng-model="ucomname" ng-change="uucomname(o)"> &...
user avatar
0 votes
0 answers
49 views

How to get edited value from textfield to pass it to server - angularjs

I am new to AngularJS. I have a problem with ng-model. In one of my pages I have a list view. Each list can be deleted or it can be edited. What I need is when I click the edit button, I have to ...
Vignesh's user avatar
  • 35
0 votes
1 answer
1k views

One-Way or One-Time binding in Angular and Watchers

I have a question about how to avoid watchers when you have readonly input textbox in AngularJS. I have created plunker for it : plunker link : OneWay Binding using ng-value This shows that even ...
Rushikesh Joshi's user avatar
0 votes
0 answers
1k views

Angular: Set value of text input without creating a model

I have a form that lives inside an ng-repeat. I'm not using ng-model on the form because I don't think there is a need just yet (it's not an AJAX form). I want to set the default value of one of my ...
Daniel Bonnell's user avatar
0 votes
3 answers
4k views

Angular ng-value doesn't work with input radio

I have 3 radio inputs bound to ctrl.poiType , where ctrl is the controller and poiType is an integer. ctrl.poiType can have one of the 3 values specified by four constants (ctrl.TYPE_TRIP, ctrl....
DeLac's user avatar
  • 1,122