AngularJS Core `
Questions tagged [angularjs-select]
113 questions
0
votes
2 answers
Default value in angular js select from Server
Here is the Scenario
I am getting Data from server in this form
$scope.data=[
{"name":"xyz","status":"pending"},
{"name":"abc","status":"completed"},
{"name":"pqr","status":"completed"}
]
This Data is Seprate GET call for different…

Sanjay B
- 213
- 1
- 3
- 11
0
votes
1 answer
ngOptions not binding model to data.
I am rendering a drop down list with ngOptions. This is how the view looks like:
In the…

SarthakBatra
- 27
- 9
0
votes
4 answers
How to add option at first position in ng-options
I ng-option element in my page.
Here how it looks in template:
In controller:
$scope.selectedItem = {};
$scope.items = [{name: 'one', id: 30 },{…

Michael
- 13,950
- 57
- 145
- 288
0
votes
3 answers
How can i change the selected ng-options option's name to something custom?
The following code will do the option name to the id.

maria
- 207
- 5
- 22
- 56
0
votes
1 answer
ng-select not updating hard listed default option
For the life of me I can't figure out how to get the correct option selected based on the data coming back from the service. the "rides" is returning just fine and the div is getting displayed properly, but my

rolinger
- 2,787
- 1
- 31
- 53
0
votes
3 answers
issue with the ng-options not working in a simple array in AngularJS
I want to save the selected value and pop up the selected value . But when I add the ng- change directive the select stops functioning. If you remove the ng change the droplist is displayed. Help me out.
This is my html
…

Tedsville
- 21
- 1
- 5
0
votes
2 answers
ngChange a bunch of dropdowns
So I need to entirely change a group of drop downs that appear based on the selection of one dropdown. I believe ngChange is the way to go about it, but I am not entirely sure how to change between two sets of divs (or if that is even the best way…

tonestrike
- 320
- 6
- 22
0
votes
1 answer
How to set value to model in AngularJS using select with array of objects
I'm new to AngularJS and I'm trying to solve one problem in most elegant way.
I have list that comes from server and used as the source for select tag's option's in my application. Lets assume that it's a list of authors which looks like this:
[
{…

Cake_Seller Слава Україні
- 338
- 3
- 14
0
votes
1 answer
Marking default value in Selectbox while using two array in Angular
I build a control using an Object that I get it from external source.
var field= {
"attributeName": "Country",
"dbColumnName": "location",
"fieldType": "DROP_DOWN",
"optionName": ['US', 'AUS', 'UK', 'IND'],
…

teenu
- 684
- 2
- 8
- 24
0
votes
1 answer
How to change variable properties according to drop-down menu item?
I have a drop-down menu populated with ng-options.
Select Currency
0
votes
2 answers
trigger an angular function when option selected from drop down
I am populating a select dropdown menu by making a call to an api. When the user chooses an option from the select menu I wish to fire the second function - $scope.getRoles(). However, this is firing immediately. Any ideas why this is happening?…
user6002037
0
votes
1 answer
0
votes
1 answer
how to keep selected option from user when views are changed
Demo:
I have a dropdown, and options are being fecthed from JSON.
say

Developer
- 1,409
- 2
- 23
- 46
0
votes
0 answers
Angularjs select option ng-change is not working
I am using simple angularjs select option. Every thing is working fine but ng-change is not working.Any Specific reason ? I have tried with $watch with 'selectedParent' . But that is also not firing. So i guess option change is not happening. Any…

Pritam Parua
- 672
- 2
- 8
- 27
0
votes
2 answers
ng-model not working in select tag under ng-repeat
This is html page