How to use the @ng-bootstrap/ng-bootstrap.NgbPopoverModule.forRoot function in @ng-bootstrap/ng-bootstrap

To help you get started, we’ve selected a few @ng-bootstrap/ng-bootstrap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ordercloud-api / ngx-shopper / src / UI / Buyer / src / app / shared / shared.module.ts View on Github external
// 3rd party UI
    FontAwesomeModule,
    TextMaskModule,

    /**
     * ng-bootstrap modules
     * only those that are used by app
     * should be imported to reduce bundle size
     */
    NgbDatepickerModule.forRoot(),
    NgbCollapseModule.forRoot(),
    NgbModalModule.forRoot(),
    NgbTabsetModule.forRoot(),
    NgbPaginationModule.forRoot(),
    NgbPopoverModule.forRoot(),
    NgbAccordionModule.forRoot(),
    NgbCarouselModule.forRoot(),
    NgbDropdownModule.forRoot(),
  ],
  exports: [
    // angular
    CommonModule,
    HttpClientModule,
    ReactiveFormsModule,

    // 3rd party UI
    FontAwesomeModule,
    TextMaskModule,

    NgbDatepickerModule,
    NgbCollapseModule,
github isaacplmann / ngx-tour / projects / ngx-tour-console / src / lib / console.module.ts View on Github external
import { CommonModule } from '@angular/common';
import { ModuleWithProviders, NgModule } from '@angular/core';
import { NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap';
import { TourHotkeyListenerComponent, TourModule, TourService } from 'ngx-tour-core';

import { TourAnchorConsoleDirective } from './tour-anchor.directive';

export { TourAnchorConsoleDirective, TourService };

@NgModule({
  declarations: [TourAnchorConsoleDirective],
  exports: [TourAnchorConsoleDirective, TourHotkeyListenerComponent],
  imports: [TourModule, CommonModule, NgbPopoverModule.forRoot()],
})
export class TourConsoleModule {
  public static forRoot(): ModuleWithProviders {
    return {
      ngModule: TourConsoleModule,
      providers: [
        ...TourModule.forRoot().providers,
      ],
    };
  }
}
github isaacplmann / ngx-tour / projects / ngx-tour-ng-bootstrap / src / lib / ng-bootstrap.module.ts View on Github external
import { CommonModule } from '@angular/common';
import { ModuleWithProviders, NgModule } from '@angular/core';
import { NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap';
import { TourModule } from 'ngx-tour-core';

import { NgbTourService } from './ng-bootstrap-tour.service';
import { TourAnchorNgBootstrapDirective, TourAnchorNgBootstrapPopoverDirective } from './tour-anchor.directive';
import { TourStepTemplateComponent } from './tour-step-template.component';
import { TourStepTemplateService } from './tour-step-template.service';

export { TourAnchorNgBootstrapDirective, TourAnchorNgBootstrapPopoverDirective, TourStepTemplateComponent, NgbTourService };

@NgModule({
  declarations: [TourAnchorNgBootstrapDirective, TourAnchorNgBootstrapPopoverDirective, TourStepTemplateComponent],
  exports: [TourAnchorNgBootstrapDirective, TourAnchorNgBootstrapPopoverDirective, TourStepTemplateComponent],
  imports: [CommonModule, NgbPopoverModule.forRoot()],
})
export class TourNgBootstrapModule {
  public static forRoot(): ModuleWithProviders {
    return {
      ngModule: TourNgBootstrapModule,
      providers: [
        TourStepTemplateService,
        ...TourModule.forRoot().providers,
        NgbTourService
      ],
    };
  }
}
github isaacplmann / ngx-tour / src / lib / plugin / console / console.module.ts View on Github external
import { NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap';
import { NgModule } from '@angular/core';
import { TourModule } from '../../tour.module';
import { TourAnchorConsoleDirective } from './tour-anchor.directive';
import { CommonModule } from '@angular/common';

export { TourAnchorConsoleDirective };

@NgModule({
  declarations: [TourAnchorConsoleDirective],
  exports: [TourAnchorConsoleDirective],
  imports: [TourModule, CommonModule, NgbPopoverModule.forRoot()],
})
export class TourConsoleModule {}