[Vuejs]-RE: vue-bootstrap-typeahead API (serializer)

0๐Ÿ‘

:serializer="input => input" means that you api return some array of objects right? and then you just show the element as to like toString(), this way your api should return an array of string.
If the api return for example: [{Id:1, Desc: "One"}, {Id:2, Desc:"Two"}] you should put there :serializer="input => input.Desc"

Leave a comment