1 | import { CommonModule } from '@angular/common';
|
2 | import { NgModule } from '@angular/core';
|
3 | import { TooltipContainerComponent } from './tooltip-container.component';
|
4 | import { TooltipDirective } from './tooltip.directive';
|
5 | import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
|
6 | import { PositioningService } from 'ngx-bootstrap/positioning';
|
7 | export class TooltipModule {
|
8 | static forRoot() {
|
9 | return {
|
10 | ngModule: TooltipModule,
|
11 | providers: [ComponentLoaderFactory, PositioningService]
|
12 | };
|
13 | }
|
14 | }
|
15 | TooltipModule.decorators = [
|
16 | { type: NgModule, args: [{
|
17 | imports: [CommonModule],
|
18 | declarations: [TooltipDirective, TooltipContainerComponent],
|
19 | exports: [TooltipDirective],
|
20 | entryComponents: [TooltipContainerComponent]
|
21 | },] }
|
22 | ];
|
23 |
|
\ | No newline at end of file |