I have two arrays, one contains the Min-Prices and the other contains the Max-Prices, and if the user chooses a min-price of say "8000" from the Min-price dropdown, I want to show only the values that is greater than "8000" in the Max-Price dropdown.
How can I approach that with Angular.js?
Here's a JSFiddle ... http://jsfiddle.net/sheko_elanteko/fxkSz/10/
<div ng-app="app">
<div ng-controller="MainController">
<form action="#">
<label>Min Price</label>
<select name="min-price">
<option ng-repeat="num in minPrice" value="{{ num }}">{{ num }}</option>
</select>
<br>
<label>Max Price</label>
<select name="max-price">
<option ng-repeat="num in maxPrice" value="{{ num }}">{{ num }}</option>
</select>
</form>
</div>
and the js ...
var app = angular.module('app', []);
app.controller('MainController', function($scope){
$scope.minPrice = [200, 400, 600, 800, 1000];
$scope.maxPrice = [200, 400, 600, 800, 1000];
});