1 | import { NgModule } from '@angular/core';
|
2 | import { ComponentLoaderFactory } from '../component-loader';
|
3 | import { PositioningService } from '../positioning';
|
4 | import { BsDropdownContainerComponent } from './bs-dropdown-container.component';
|
5 | import { BsDropdownMenuDirective } from './bs-dropdown-menu.directive';
|
6 | import { BsDropdownToggleDirective } from './bs-dropdown-toggle.directive';
|
7 | import { BsDropdownConfig } from './bs-dropdown.config';
|
8 | import { BsDropdownDirective } from './bs-dropdown.directive';
|
9 | import { BsDropdownState } from './bs-dropdown.state';
|
10 | export var BsDropdownModule = (function () {
|
11 | function BsDropdownModule() {
|
12 | }
|
13 | BsDropdownModule.forRoot = function (config) {
|
14 | return {
|
15 | ngModule: BsDropdownModule, providers: [
|
16 | ComponentLoaderFactory,
|
17 | PositioningService,
|
18 | BsDropdownState,
|
19 | { provide: BsDropdownConfig, useValue: config ? config : { autoClose: true } }
|
20 | ]
|
21 | };
|
22 | };
|
23 | ;
|
24 | BsDropdownModule.decorators = [
|
25 | { type: NgModule, args: [{
|
26 | declarations: [
|
27 | BsDropdownMenuDirective,
|
28 | BsDropdownToggleDirective,
|
29 | BsDropdownContainerComponent,
|
30 | BsDropdownDirective
|
31 | ],
|
32 | exports: [
|
33 | BsDropdownMenuDirective,
|
34 | BsDropdownToggleDirective,
|
35 | BsDropdownDirective
|
36 | ],
|
37 | entryComponents: [BsDropdownContainerComponent]
|
38 | },] },
|
39 | ];
|
40 |
|
41 | BsDropdownModule.ctorParameters = function () { return []; };
|
42 | return BsDropdownModule;
|
43 | }());
|
44 |
|
\ | No newline at end of file |