Forums - C# Corner

Forum guidelines
maragatha mani

maragatha mani

  • 1.7k
  • 19
  • 330

[ngbTypeahead] using search lowercase

Aug 10 2018 12:53 AM
<div class="form-group">
<label class="control-label">Brandlabel>
<input name="brandName" type="text" class="form-control" [placeholder]="" [(ngModel)]="filter.company_id"
[ngbTypeahead]="searchBrand" maxlength="50" #brandName="ngModel" autocomplete="true">
</div>
 
How to bind value id to name using ngmodel in search lowercase
 
In dropdown i am getting
 
<select
[(ngModel)]="filter.company_id"
name="brandName"
class="form-control"
#brandName="ngModel">
<option value="0">All</option>
<option *ngFor="let brand of brands"
value="{{+brand.id}}">
{{brand.name}}
</option>
</select>