Hi, Thanks for the great component. However it is not working for me in case of remote data which has bit complex data path. No completer list displayed and no error message what so ever.
Here is my response from remote server looks like {
"took":1,
"suggest":{
"user-suggest":[
{
"options":[
{"_source":{ "name":"aaa","id":"aaa"}},
{"_source":{ "name":"bbb","id":"bbb"}},
{"_source":{ "name":"ccc","id":"ccc"}},
{"_source":{ "name":"ddd","id":"ddd"}}
]
}
]
}
}
Hi, Thanks for the great component. However it is not working for me in case of remote data which has bit complex data path. No completer list displayed and no error message what so ever.
dataService: RemoteData;
in constructor
this.dataService = CompleterService.remote(url, "_source.id", "_source.name"); this.dataService.dataField("suggest['user-suggest'][0].options");
Here is my response from remote server looks like {
"took":1, "suggest":{
"user-suggest":[
{
"options":[
{"_source":{ "name":"aaa","id":"aaa"}}, {"_source":{ "name":"bbb","id":"bbb"}}, {"_source":{ "name":"ccc","id":"ccc"}}, {"_source":{ "name":"ddd","id":"ddd"}} ] } ] } }