34 questions
0
votes
1
answer
174
views
Can't make select work properly with ngmodel
I have a "lookup" select which needs to work as a "passive" control: highlight the selected option and as an "active" control: let user select the option and initiate ...
0
votes
0
answers
238
views
Problem setting value in field ngValue form Angular
I have the follow code:
.json
0: {stateId: 1, name: "Acre", uf: "AC", countryId: 1, country: {…}}
1: {stateId: 2, name: "Alagoas", uf: "AL", countryId: 1, country: {…}}
2: {stateId: 3, name: "...
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....
0
votes
3
answers
4k
views
Angular "select" binding to a true/false value not working
I'm trying to bind my select element to a true/false value. The binding seems to happen as the -- select -- option isn't shown, meaning Angular knows there's a value, but the display is just blank by ...
0
votes
0
answers
46
views
Session Value doesnot retain for selection box
Here is Picture For my issue
I have populated the select box data dynamically and after setting in session those values must be selected even the page reloads
The code that populates the select ...
0
votes
1
answer
2k
views
select not working with ngValue using angular2
I am fairly new to Angular2, and am working on a small POC, where I want to show a list of options in a dropdown to the user, the user will then select one of the options, and then I want to update a ...
-1
votes
1
answer
31
views
i want to get the value of ng-value in ng-model so i can use the data in controller part. Is it possible or is there any other way?
Code in html
<div ng-repeat="cityobj in cityData" class="tabledata">
<input type="text" ng-value="{{cityobj.temp.humidity}}" ng-model="humidity">
<div>
In ...
0
votes
0
answers
624
views
value vs ng-value with json format
In the first snippet, when using ng-value directive, ng-value= to json, behave like an object, I can get the json format and use it like an object.
But, if I am using value attribute instead I can't ...
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 ...
0
votes
2
answers
921
views
There is issue $scope value doesn't bind to ng-model at first time load
I want to display some default template in text area at very first loading.I tried to get that output but my code doesn't work.I put all breakpoints that value change.that also doesn't work. When ...
0
votes
2
answers
521
views
How to check radio based on model custom value
I'm trying to use the example code from this Angularjs example page in my app for input[radio]. I choose to use an object as a value of a particular radio button, so each of the radio buttons in a ...
0
votes
0
answers
188
views
Is there a property to "autobind" or "rebind" a select again in Angular JS?
I need to update the items in a select using Angular JS.
The initial data in the select is good (using ng-repeat), but it will change depending of another parameter value, the ng-repeat works in the ...
-1
votes
2
answers
3k
views
Form input ng-value seems filled but is empty
I am building an AngularJS app. I have a problem with a form that is filled with ng-value.
The input field is filled in, the user can see text but when the user presses the 'change' button it becomes ...
0
votes
2
answers
91
views
How to use both ng-value and ng-class without duplication?
I have an input which uses ng-value with a filter to display a number.
<input ng-value="myDataCollection | customFilter">
I want to also apply ng-class to change the text colour to red if ...
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 ...