Charles Baldo
asked on
Quick Sort on AngularJS sele
I have this select
<select id="selectProperty" ng-model="itemSelected" ng-options="item as item.addressShort for item in listings" ng-change="updateCharts()" >
it is filled with
$rootScope.$on('viewListin gDetail', function ($event, listing) {
for(var j = 0; j < $scope.listings.length; j++) {
if(listing.ListingId == $scope.listings[j].Listing Id){
$scope.itemSelected = $scope.listings[j];
}
}
$scope.selectProperty = listing;
$scope.updateCharts($scope .itemSelec ted);
});
how can I sort by item.addressShort ??
<select id="selectProperty" ng-model="itemSelected" ng-options="item as item.addressShort for item in listings" ng-change="updateCharts()"
it is filled with
$rootScope.$on('viewListin
for(var j = 0; j < $scope.listings.length; j++) {
if(listing.ListingId == $scope.listings[j].Listing
$scope.itemSelected = $scope.listings[j];
}
}
$scope.selectProperty = listing;
$scope.updateCharts($scope
});
how can I sort by item.addressShort ??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER