I have a modal that is for creating a new Job. There is a typeahead input to search for the related Customer. When I select a Customer from that list I need the properties to populate input fields. I made a plunkr but I can't get the typeahead to work. plunkr
<input type="text" class="form-control" ng-model="CustomerName"
typeahead="job.Customers[0].CustomerName for job in jobArray | filter:$viewValue"
placeholder="Enter Customer" typeahead-on-select="selectedCustomer = $item;">
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">C. Name</span>
<input type="text" class="form-control" ng-model="CustomerName"
typeahead="job.Customers[0].CustomerName for job in jobArray | filter:$viewValue"
placeholder="Enter Customer" typeahead-on-select="selectedCustomer = $item;">
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">C. Address</span>
<input ng-model="CustomerAddress" class="form-control" type="text">
</div>
</div>
typeaheaddirective is defined in.