In this answer, it was explained to me to use selectItem to get the select event.
But at this point, the model I bound to the text box is still the original text th
You should be using $event
to get the selected Items as below
<input type="text" class="form-control" (selectItem)="selectedItem($event)" [(ngModel)]="model" [ngbTypeahead]="search" [resultFormatter]="formatter" />
<hr>
<pre>Model: {{ model | json }}</pre>
clicked item {{clickedItem}}
Your method should be as
selectedItem(item){
this.clickedItem=item.item;
console.log(item);
}
LIVE DEMO