First import it to your app module or any submodule as you wish
1
import{ TypeaheadModule }from'ngx-bootstrap';
2
@NgModule({
3
imports:[TypeaheadModule,...]
4
})
5
exportclassAppModule(){}
Copied!
How to use
HTML
Typescript
1
<divclass="form-group typehead">
2
<inputplaceholder="States of USA"[(ngModel)]="selectedState"[typeahead]="states"[typeaheadScrollable]="true"[typeaheadOptionsInScrollableView]="5"class="form-control">