-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Description
Does typeahead.js support changing of the local data array post-initialization while still getting the typeahead functionality for the newly inserted items?
I just tried to utilize this in my AngularJS app:
$scope.addCountry = function () {
$scope.exampleData.local.push({name:'XXX Test Place', code: 'XXX'});
};
// single dataset
$scope.exampleData = {
name: 'countries',
valueKey: 'name',
local: [
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
...
]
};Metadata
Metadata
Assignees
Labels
No labels