i've this:
$('input#tags_watch').typeahead({
highlight: true,
autoselect: true
},
{
source: names.ttAdapter(),
displayKey: 'name',
templates: {
suggestion: Handlebars.compile([
'<div id="{{id}}"><p class="repo-country">{{country}}</p>',
'<p class="repo-name">{{name}}</p>',
'<p class="repo-city">{{city}} - {{ocupation}}</p></div>'
].join(''))
}
});
it's allways returning an error: Uncaught Error: missing input
i don't know why this happens, but the input exists!!!
JS FIDDLE: http://jsfiddle.net/jhogLbg5/