UNPKG

ng2-bootstrap-base-modified

Version:

Native Angular Bootstrap Components Typeahead modified

23 lines (20 loc) 811 B
import { CommonModule } from '@angular/common'; import { NgModule, ModuleWithProviders } from '@angular/core'; import { TypeaheadContainerComponent } from './typeahead-container.component'; import { TypeaheadDirective } from './typeahead.directive'; import { ComponentLoaderFactory } from '../component-loader'; import { PositioningService } from '../positioning'; @NgModule({ imports: [CommonModule], declarations: [TypeaheadContainerComponent, TypeaheadDirective], exports: [TypeaheadContainerComponent, TypeaheadDirective], entryComponents: [TypeaheadContainerComponent] }) export class TypeaheadModule { public static forRoot(): ModuleWithProviders { return { ngModule: TypeaheadModule, providers: [ComponentLoaderFactory, PositioningService] }; }; }