In this example, we have an array named staffMembers with first name,last name and designation. In the first dropdown we bind the first name and last name with the ng-options
directive. In the second dropdown we bind the first name and last name with the ng-options
directive and group by designation.