esvit/ng-table — pull request #342 by israelidanny (2014-06-10 04:45:08+00:00)
Title: Changed 'filter-data' to accept function/array/object variables

This comes very useful when dealing with autocomplete inputs that need to pull data from the server. For instance, the following example deals with twitter's typeahead.

We define a new template:
'''javascript
$templateCache.put('ng-table/filters/typeahead.html', '');
'''

In this case, filter.data would have had to look like this, to be able to pull stuff from the server:
'''
{
displayKey: 'val',
source: workplaces.ttAdapter()
}
'''

This pull request allows for that without prohibiting the usual way of doing things.