I have an Angular application that is fetching hotel data from an API. I want to filter the results based on the minimum price of the hotels being less than $50.
$http.get($rootScope.baseurl + 'api/hotels/', {
params: {
page_size: $scope.page_size,
page: $scope.page,
goingTo: goingTo,
ordering: $scope.sortBy,
star: $scope.filter.star,
min_price: ????
}}).then(
function(data, status, headers, config) {
$scope.Hotels = data.data.results;
$scope.count = data.data.count;
$scope.loading = false;
PageService.setContentReady();
},
function(data, status, headers, config) {
$scope.loading = false;
PageService.contentStatus = 'ready';
}
);
How can I display hotels with prices under $50?