When I place json locally, the autocomplete works. I'm using the tagsinput boopstrap library.
/*var equipos = new Bloodhound({
datumTokenizer: Bloodhound.tokenizers.obj.whitespace('text'),
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: [
{text: 'metronic', id: '2', estado: 'BUENO'},
{text: 'keenthemes', id: '6', estado: 'INOPERATIVO'},
{text: 'metronic theme', id: '5', estado: 'REGULAR'},
{text: 'metronic template', id: '4', estado: 'BUENO'},
{text: 'keenthemes team', id: '3', estado: 'REGULAR'}
]
});*/
/*local: [
{
"id": "1",
"text": "001 / COMPRESOR 1",
"estado": "REGULAR"
},
{
"id": "6",
"text": "001001 / SUB COMPRESOR 1.0",
"estado": "REGULAR"
},
{
"id": "7",
"text": "001002 / COMPRESOR 3",
"estado": "BUENO"
},
{
"id": "2",
"text": "002 / COMPRESOR 2",
"estado": "BUENO"
},
{
"id": "10",
"text": "003 / COMPRESOR CRISTAL 15*10",
"estado": "INOPERATIVO"
}
]*/
// equipos.initialize();