JSFiddle: https://jsfiddle.net/ealonwang/7y25ru40/
I am implementing the typeahead function. It seems that ng-model does not work with autocomplete.
Here is my code.
HTML:
<input type="text" id="origin" ng-model="searchForm.origin" placeholder="City, State">
AngularJS:
var origin = ["DALLAS, TX", "DALLAS, NE"];
$("#origin").autocomplete({
source: origin,
autoFocus: true,
delay: 0,
minLength: 3
});
When I type DAL in the input and select DALLAS, TX from the dropdown list, I actually get DAL for ng-model. Anyone has a solution? Thanks in advance.

autocomplete.