How to use the ngx-bootstrap.AlertModule.forRoot function in ngx-bootstrap

To help you get started, we’ve selected a few ngx-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 syndesisio / syndesis-ui / src / app / app.module.ts View on Github external
declarations: [AppComponent],
  imports: [
    BrowserModule,
    // TODO - commenting this out for now as it seems to prevent the angular router from clearing it's child elements on route changes
    //BrowserAnimationsModule,
    FormsModule,
    ReactiveFormsModule,
    HttpModule,
    DynamicFormsCoreModule.forRoot(),
    RestangularModule.forRoot([ConfigService], restangularProviderConfigurer),
    TabsModule.forRoot(),
    TooltipModule.forRoot(),
    ModalModule.forRoot(),
    BsDropdownModule.forRoot(),
    CollapseModule.forRoot(),
    AlertModule.forRoot(),
    PopoverModule.forRoot(),
    TypeaheadModule.forRoot(),
    TagInputModule,
    AppRoutingModule,
    StoreModule,
    SyndesisCommonModule.forRoot(),
    DataMapperModule,
    NotificationModule,
    TourNgxBootstrapModule.forRoot()
  ],
  providers: [
    {
      provide: APP_INITIALIZER,
      useFactory: appInitializer,
      deps: [ConfigService],
      multi: true
github iilunin / crypto-bot / admin / src / app / app.module.ts View on Github external
declarations: [
    AppComponent,
    AssetTableComponent,
    EntryDetailsComponent,
    TradeDetailsComponent,
    ExitDetailsComponent,
    SLDetailsComponent,
    SymbolValidatorDirective,
    LogInComponent,
  ],
  imports: [
    // CollapseModule.forRoot(),
    TypeaheadModule.forRoot(),
    ButtonsModule.forRoot(),
    ModalModule.forRoot(),
    AlertModule.forRoot(),
    TooltipModule.forRoot(),
    BrowserModule,
    HttpClientModule,
    TradesRoutingModule,
    FormsModule
  ],
  providers: [WebsocketService,
    {
      provide: HTTP_INTERCEPTORS,
      useClass: AuthInterceptor,
      multi: true
    }],
  bootstrap: [AppComponent]
  // schemas: schemas
})
export class AppModule {
github Vetkdf / yang-test / src / app / app.module.ts View on Github external
import { PublicModule } from './public/public.module';
import { CoreModule } from './core/core.module';
import { AppRoutingModule } from './app.routing.module';
import { HashLocationStrategy,LocationStrategy} from '@angular/common';
import { CommonFunctionModule } from './common/common.function.module';

@NgModule({ 
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    ModalModule.forRoot(),
    AlertModule.forRoot(),
    PublicModule,
    BusinessModule,
    AppRoutingModule,
    CoreModule,
    CommonFunctionModule,
  ],
  providers: [{provide: LocationStrategy, useClass: HashLocationStrategy}],
  bootstrap: [AppComponent]
})
export class AppModule { }
github ceph / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / components / grafana / grafana.component.spec.ts View on Github external
describe('GrafanaComponent', () => {
  let component: GrafanaComponent;
  let fixture: ComponentFixture;

  configureTestBed({
    declarations: [GrafanaComponent, InfoPanelComponent, LoadingPanelComponent],
    imports: [AlertModule.forRoot(), HttpClientModule, RouterTestingModule],
    providers: [CephReleaseNamePipe, SettingsService, SummaryService]
  });

  beforeEach(() => {
    fixture = TestBed.createComponent(GrafanaComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeTruthy();
  });
});
github spring-cloud / spring-cloud-dataflow-ui / ui / src / app / streams / streams.module.ts View on Github external
import { StreamsDestroyComponent } from './streams-destroy/streams-destroy.component';
import { StreamHistoryComponent } from './stream/history/stream-history.component';
import { StreamHistoryStatusComponent } from './components/stream-history-status/stream-status.component';
import { PropertiesGroupsDialogComponent } from '../shared/flo/properties-groups/properties-groups-dialog.component';
import { StreamsUtilsComponent } from './streams-utils/streams-utils.component';
import { StreamsImportComponent } from './streams-utils/streams-import/streams-import.component';
import { StreamsExportComponent } from './streams-utils/streams-export/streams-export.component';
import { StreamsUtilsService } from './streams-utils/streams-utils.service';

@NgModule({
  imports: [
    StreamsRoutingModule,
    SharedModule,
    NgxPaginationModule,
    ReactiveFormsModule,
    AlertModule.forRoot(),
    ModalModule.forRoot(),
    PopoverModule.forRoot(),
    TooltipModule.forRoot(),
    BsDropdownModule.forRoot(),
    AppsModule,
    FloModule,
    AuthModule,
    ProgressbarModule,
  ],
  declarations: [
    StreamsComponent,
    StreamCreateComponent,
    StreamComponent,
    StreamDeployComponent,
    StreamCreateDialogComponent,
    StreamPropertiesDialogComponent,
github dockstore / dockstore-ui2 / src / app / aliases / aliases.module.ts View on Github external
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AliasesComponent } from './aliases.component';
import { AlertModule } from 'ngx-bootstrap';
import { HeaderModule } from '../shared/modules/header.module';
import { AliasesRouting } from './aliases.routing';
import { CustomMaterialModule } from '../shared/modules/material.module';
import { RefreshAlertModule } from '../shared/alert/alert.module';
import { FlexLayoutModule } from '@angular/flex-layout';

@NgModule({
  imports: [CommonModule, AlertModule.forRoot(), HeaderModule, AliasesRouting, CustomMaterialModule, RefreshAlertModule, FlexLayoutModule],
  declarations: [AliasesComponent],
  exports: [AliasesComponent]
})
export class AliasesModule {}
github Thunkar / MEAN2Template / frontendSrc / app / app.module.ts View on Github external
@NgModule({
  declarations: [
    AppComponent,
    NavComponent,
    LandingComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    AppRoutingModule,
    NgsRevealModule.forRoot(), 
    ScrollSpyModule.forRoot(),
    Ng2PageScrollModule.forRoot(),
    AlertModule.forRoot()
  ],
  providers: [{ provide: LocationStrategy, useClass: HashLocationStrategy }],
  bootstrap: [AppComponent]
})
export class AppModule { }
github atlasmap / atlasmap / ui / src / app / lib / atlasmap-data-mapper / components / modal-error-window.spec.ts View on Github external
beforeEach(() => {
    TestBed.configureTestingModule({
      imports: [AlertModule.forRoot(), FormsModule],
      providers: [
        ChangeDetectorRef,
        ModalErrorWindowComponent,
      ],
      declarations: [
        ConstantFieldEditComponent,
        DataMapperErrorComponent,
        ModalErrorWindowComponent
      ],
    }).overrideModule(BrowserDynamicTestingModule, {
      set: {
        entryComponents: [
          ConstantFieldEditComponent
        ],
      }
    });
github eclipse / winery / org.eclipse.winery.repository.ui / src / app / wineryMainModules / admin / admin.module.ts View on Github external
@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        RepositoryModule,
        SelectModule,
        WineryDuplicateValidatorModule,
        WineryLoaderModule,
        WineryModalModule,
        WineryTableModule,
        WineryUploaderModule,
        WineryNamespaceSelectorModule,
        WineryFileComparisonModule,
        ProgressbarModule.forRoot(),
        AlertModule.forRoot(),
        AccordionModule.forRoot(),
        CollapseModule.forRoot(),
        ModalModule.forRoot(),
        AdminRouterModule
    ],
    declarations: [
        NamespacesComponent,
        LoggerComponent,
        TypeWithShortNameComponent,
        ConsistencyCheckComponent,
        ErrorElementToLinkPipe,
        AccountabilityComponent,
        AuthorizationComponent,
        AuthenticationComponent,
        ConfigurationComponent,
        ProvenanceComponent
github syndesisio / syndesis / app / ui / src / app / vendor / vendor.module.ts View on Github external
BlockCopyModule,
  CardModule,
  InlineCopyModule,
  InlineNotificationModule,
  ListModule,
  PaginationModule,
  ToastNotificationListModule,
  ToastNotificationModule,
  ToolbarModule,
} from 'patternfly-ng';

import { CodemirrorModule } from 'ng2-codemirror';

const imports = [
  ActionModule,
  AlertModule.forRoot(),
  BlockCopyModule,
  BsDropdownModule.forRoot(),
  CardModule,
  CodemirrorModule,
  CollapseModule.forRoot(),
  FileUploadModule,
  InlineCopyModule,
  InlineNotificationModule,
  ListModule,
  ModalModule.forRoot(),
  PopoverModule.forRoot(),
  ToastNotificationListModule,
  ToastNotificationModule,
  ToolbarModule,
  TooltipModule.forRoot(),
  TypeaheadModule.forRoot(),