Currently, I am working on an Angular application that presents movies in a table format with search input and dropdown filter by genres. As I work on this project, my main focus is finding a way to filter search results based on both the text entered in the search input and the genre selected from the dropdown menu.
To see the code in action, you can check out the JSBin.
When you select a value from the dropdown, you will notice the console log displaying $scope.selectedValue
. My objective now is to pass this selected value to the search input, which uses ng-model="searchBar"
.
Thank you for any assistance you can provide.
EDIT: In summary, I am looking for a solution to enable filtering of search results by Genre as required.