I have two select elements. In my first select, I load names. I want that when I select a name, the second select element's options are filtered to include only the age of the selected user.
Example:
When I select Jacob in my first select, I want my Age select to have 27 as the only option.
<table ng-table="tableParams" show-filter="true" class="table"> <tr ng-repeat="user in $data" ng-class="{ 'emphasis': user.money > 500 }"> <td data-title="'Name'" filter="{ 'name': 'select' }" filter-data="names($column)"> {{user.name}} </td> <td data-title="'Age'" filter="{ 'age': 'select' }" filter-data="ages($column)"> {{user.age}} </td> </tr> </table> How can I automatically filter my second select element based on the first select element?