angular-ui/bootstrap — pull request #1166 by frankamp (2013-10-15 18:09:22+00:00)
Title: Add optional boolean return to refire typeahead onSelectCallback

Adds a backward compatible, optional return value to the onSelectCallback. If truthy, it will set the input's view value to the selected item which will cause the typeahead to refire.

This is useful for iterative auto-completion matches, such as picking a file from a highly nested directory, similar to bash auto-completion with tab.

Example Template:

Example Controller:

$scope.continue_suggesting_if_directory = function(value){
return value.slice(-1) === '/';
};