Topic: Autocomplete load data dynamic?
Hi,
is it possible to load the values for the autocomplete method dynamcly during type with ajax?
I can not find any method for replace the data of the array.
I use it in an AngularJs 1.7 directive.
When I run a angular method to get new data from API the autocomplete did not rrefresh his data.
app.directive('mdbAutocomplete', function() { return { // Restrict it to be an attribute in this case restrict: 'A', // responsible for registering DOM listeners as well as updating the DOM link: function(scope, element, attrs) { $(element).mdb_autocomplete({ data: scope.subjects }); } }; });
Add comment
Piotr Glejzer staff answered 6 years ago
Hi mholstein,
we are very sorry but we don't use AngularJs, we are using Angular 6.1.7.
Here is docs about it MDB Angular.
Best,
Piotr
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.5.10
- Device: Independ
- Browser: Independ
- OS: Independ
- Provided sample code: No
- Provided link: No
Tags
Related topics