AngularJS Core `
Questions tagged [angularjs-select]
113 questions
1
vote
1 answer
Angular setting a selected attribute with ng-options
Im populating the values and display names for a select based on a JSON call. In the same call, I'm pulling from a nested array to get a default account value (if it exists).
so I have a scope that is holding that default account value, and the…

Christian Hill
- 378
- 1
- 3
- 17
1
vote
1 answer
1
vote
3 answers
AngularJS Select Options Preselection
I'v some problems with preselection of a select-input in angularJS.
The select-box get filled by an array.
1
vote
2 answers
Angular : select / ng-option not fired: how to debug?
I have a trouble with a piece of angular code: I have a "ng-select" which works in some environments but not in others !
The model of this code is:
var imputationApp = angular.module('imputationApp', []).controller('imputationController',…

Didier68
- 1,027
- 12
- 26
1
vote
3 answers
simple multiple selection ng-selected with array not working
This is my category list
$scope.categories= [{"category_id":"1","category_name":"sports"},{"category_id":"2","category_name":"casual"},{"category_id"
:"3","category_name":"formal"},{"category_id":"4","category_name":"party…

vaibhav
- 331
- 1
- 4
- 15
1
vote
1 answer
How to translate ids to objects in ng-option angular?
I have array of ids and I need to use this array as source of my ng-option directive inside of select. I certainly could find objects with corresponding id in my collection and create an array of objects to use it instead of array of ids but I…

dKab
- 2,658
- 5
- 20
- 35
1
vote
2 answers
Issues with passing ng-model to custom directive and making it work
I've created a custom directive that auto-populates a select with a list of countries. The directive has a preselect isolate scope attribute, that if set to true will preselect a country.
ng-model is also passed as an isolate scope attribute
The…

IgnorantUser
- 197
- 1
- 12
1
vote
2 answers
angularjs how to retrieve data from mysql and show in ng-select and ng-options
i was trying to populate data in html form using ng-select and ng-options.but cannot figure it out.my code looks like this:
function get_areanames() {
$qry = mysql_query('SELECT * from tbl_area');
$data = array();
while($rows =…

akash
- 51
- 1
- 1
- 5
0
votes
1 answer
how to make dropdown select a certain value from getting the id from the database?
The code below show a dropdown list from using ng-repeat. When I edit this entity, I have to make them show a certain value selected already than just showing a whole list. I know that I can put selected keyword when I want to select a certain…

user13151042
- 35
- 5
0
votes
1 answer
want to get label but nothing is shown in the view
Function are over called with expressions in AngularJS
I want to get the label binded to the selectedType value in the option tag but nothing is shown in the view and in the console there are many calls
view.jsp
0
votes
1 answer
color of option in Angular select
How do I assign a font colour for each option in the dropdown menu in angular?
I tried to do it by adding
ng-style="{color:{{selectedCar.dropdown_color}};}" to the select tag, but it's not working.