Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// 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,
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,
],
};
}
}
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
],
};
}
}
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 {}