mgcrea/angular-strap — pull request #283 by rocambolesque (2013-10-23 08:46:30+00:00)
Title: Adds element to typeahead callback function arguments

Offers a way to use the same callback function for multiple elements.

Usage example:

View
```html

```

Controller
```javascript
$scope.brands = {"brands":[{"label":"ALFA ROMEO"},{"label":"AUDI"}]};
$scope.models = {"models":[{"label":"Mito"},{"label":"A 1"}]};

$scope.typeaheadFn = function(query, element) {
return $.map($scope[element[0].name], function(e) {
return e.label;
});
}
```