I am new to AngularJS and writing an AngularJS application with four drop down (select) acting as the search criteria to filter the search result. Each drop down is populated by a field from the search result. Though, some of the dropdown fields are not displayed in the search result.
The expected logic is as follows: 1.On page load, you display the 4 dropdown and underneath the unfiltered results say, 10 rows 2.On change of dropdown A, the associated filter is applied to the JSON result and result is refreshed and automatically displayed 3.The last selected dropdown option is retained each time 4.On change of dropdown B, the associated filter is applied to the JSON result and result is refreshed and automatically displayed, limiting result further 5.On change of dropdown D, the associated filter is applied to the JSON result and result is refreshed and automatically displayed, limiting result further 6.On change of dropdown C, the associated filter is applied to the JSON result and result is refreshed and automatically displayed, limiting result further
So, the dropdown can be selected in any order and there is a cummulative filtering Also, if no result is returned by filter combination, a message is displayed.
I have a solution for one drop down, but cannot implement multiple drop down filter on same json data. My solution was based on the following filter data using dropdown?, which as a plunker.
Any help will be very much appreciated.