AngularJS Core `
Questions tagged [angularjs-select]
113 questions
1
vote
1 answer
Select doesn´t recognise ng-change
I have a "select" using ng-options. It has 4 "periods". After an event is triggered, this happens:
if ($scope.periods.length <= 4) {
$scope.periods.push({
IdPeriod: 6,
Description: "PERSONALIZADA"
});
}
setTimeout(() => {
…
1
vote
1 answer
Remove filter when user selects default value in select
I have some issue with default angularjs filter feature. When the data load first time the data is loading without any filter applied.That is expected and when I selects from the drop down the filter working as expected with the filtered data.But…

Bharath Gajjala
- 81
- 8
1
vote
1 answer
1
vote
1 answer
How do I filter drop down list and bind first matching item in select drop down list in angular js
I have input text box to filter items from a dropdown Select list.
This works fine.
But there are two problems.
When data gets populated i want 1st item to be visible in dropdown.
As i type in filter box first matching among the list should be…

istudent
- 105
- 1
- 11
1
vote
2 answers
Retrieving selected option angularJS with ng-repeat
I'm traying to retrieve the selected option from the HTML view with AngularJS, but I do not find the way since all the solutions I have seen take into account the parameter "value", but I do not have it here because I do not know the content of the…

Antman
- 453
- 2
- 8
- 18
1
vote
1 answer
Reset the filter if match not found in select box
I am trying to create a filter which will show the results in the table based on the selection in the select box.
Also, by default the 'City' select box will be set user location which I'm grabbing and setting ng-init="my.city='${city}'". So, the…

Sunny
- 902
- 3
- 18
- 41
1
vote
0 answers
Angular js oi-select ng-init with ng-repeat
I am working on dynamic forms with ng-repeat. I am using the oi-select library for loading my locations. The oi-select box has multi select feature. on my page loading by default, I am loading first option value in that oi-select box.
But I am using…

kannanc
- 21
- 3
1
vote
0 answers
Angularjs - ng-model not working for select while using ng-repeat and ng-selected
I have set my ng-repeat in options along with ng-selected, but option is not getting selected, When I remove ng-model from select all become working.
HTML code:
1
vote
0 answers
Malfunctioning Select option dropdowns while using ngRepeat (or ngOptions), ngModel, ngChange and ngSelected altogether
I have a smart table with a column containing Select options (drop-down) based on one object and it's selected option based on a different JSON object.
So I use ng-repeat to repeat all option values and ng-selected with another object that will mark…

Prakash M.
- 479
- 8
- 26
1
vote
2 answers
1
vote
3 answers
Dynamic select with default selected
How could I generate a select element with options and default option mark as 'selected'?
For example, my options array:
$scope.options = [
{
"value": 1,
"label": "One",
"selected": true
},
…

Olaf Erlandsen
- 5,817
- 9
- 41
- 73
1
vote
1 answer
ng-select set selected option with ng-repeat
I can't get the select box to show that an option is selected even though it seems like it should be. I have an array of objects and I have a property for each showing as true or false.