An angular directive for searching for and selecting options displayed in a dropdown list