rajan-g / ng2-typeahead

ng2-typeahead
2 stars 4 forks source link

How to use with JSON data from remote server? #1

Closed n0490b closed 7 years ago

n0490b commented 7 years ago

Is it possible to feed this autocomplete json data from a remote server?

rajan-g commented 7 years ago

Hi, This module support remote data feeding. refer example code, It have a property "asynchDataCall". it has two params, value will receive user input cb is a other one. after your remote service invocation (data fetching from server) do your data customization and pass to cb method invocation example : cb(result);