We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c037e2 commit fe1e82cCopy full SHA for fe1e82c
1 file changed
src/directives/typeahead.js
@@ -21,7 +21,7 @@ angular.module('$strap.directives')
21
22
element.attr('data-provide', 'typeahead');
23
element.typeahead({
24
- source: value,
+ source: function(query) { return angular.isFunction(value) ? value.apply(null, arguments) : value; },
25
minLength: attrs.minLength || 1,
26
items: attrs.items,
27
updater: function(value) {
0 commit comments