How to use the angular2-toaster.ToasterModule.forRoot function in angular2-toaster

To help you get started, we’ve selected a few angular2-toaster 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 forCrowd / WealthFramework / AngularClient / src / main / core / core.module.ts View on Github external
KnowledgeIndexComponent,
    PriorityIndexComponent,
    ProjectViewerComponent,
    PrologueComponent,

    // Not in use
    //BasicsComponent,
    //ImplementationComponent,
    //ReasonComponent,
    //TotalCostIndexComponent
  ],
  exports: [
    RouterModule,
  ],
  imports: [
    ToasterModule.forRoot(),
    MomentModule,
    BackboneModule.configure(backboneConfig),

    SharedModule,
    RouterModule.forChild(coreRoutes),
    Angulartics2Module.forRoot(),
    ProjectEditorModule,
    ProjectViewerModule,
  ],
  providers: [
    AppProjectService,
    AuthGuard,
    CanDeactivateGuard,
    DynamicTitleResolve,
    Title
  ]
github fabienvauchelles / qscore / gui / src / app / app.module.ts View on Github external
import {ToasterModule} from 'angular2-toaster';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {ModalModule} from 'ngx-bootstrap';
import {ConfirmGuard} from './common/modals/confirm/confirm.guard';
import {LeadsService} from './model/leads/leads.service';



@NgModule({
    imports: [
        BrowserModule,
        AppRoutingModule,
        BsDropdownModule.forRoot(),
        TabsModule.forRoot(),
        BrowserAnimationsModule,
        ToasterModule.forRoot(),
        ModalModule.forRoot(),
        ChartsModule,
        HttpClientModule,
    ],
    declarations: [
        AppComponent,
        HomeLayoutComponent,
        ...APP_COMPONENTS,
        ...APP_DIRECTIVES
    ],
    providers: [
        {
            provide: HTTP_INTERCEPTORS,
            useClass: TokenInterceptor,
            multi: true,
        },
github bitwarden / web / src / app / app.module.ts View on Github external
registerLocaleData(localeZhCn, 'zh-CN');
registerLocaleData(localeZhTw, 'zh-TW');

@NgModule({
    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        FormsModule,
        AppRoutingModule,
        ServicesModule,
        Angulartics2Module.forRoot([Angulartics2GoogleAnalytics], {
            pageTracking: {
                clearQueryParams: true,
            },
        }),
        ToasterModule.forRoot(),
        InfiniteScrollModule,
        DragDropModule,
    ],
    declarations: [
        A11yTitleDirective,
        AcceptOrganizationComponent,
        AccountComponent,
        AddCreditComponent,
        AddEditComponent,
        AdjustPaymentComponent,
        AdjustSeatsComponent,
        AdjustStorageComponent,
        ApiActionDirective,
        AppComponent,
        AttachmentsComponent,
        AutofocusDirective,
github bitwarden / desktop / src / app / app.module.ts View on Github external
registerLocaleData(localeZhCn, 'zh-CN');
registerLocaleData(localeZhTw, 'zh-TW');

@NgModule({
    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        FormsModule,
        AppRoutingModule,
        ServicesModule,
        Angulartics2Module.forRoot([Angulartics2GoogleAnalytics], {
            pageTracking: {
                clearQueryParams: true,
            },
        }),
        ToasterModule.forRoot(),
        InfiniteScrollModule,
        DragDropModule,
    ],
    declarations: [
        A11yTitleDirective,
        AddEditComponent,
        ApiActionDirective,
        AppComponent,
        AttachmentsComponent,
        AutofocusDirective,
        BlurClickDirective,
        BoxRowDirective,
        CiphersComponent,
        CollectionsComponent,
        ColorPasswordPipe,
        EnvironmentComponent,
github Stabzs / Angular2-Toaster / demo / webpack / src / app.module.ts View on Github external
import { NgModule, Component } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule, NoopAnimationsModule } from '@angular/platform-browser/animations';

import { ToasterModule, ToasterService } from 'angular2-toaster';
import { AppComponent } from './app.component';


@NgModule({
    declarations: [AppComponent],
    bootstrap: [AppComponent],
    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        ToasterModule.forRoot()
    ]
})
export class AppModule { }
github bitwarden / directory-connector / src / app / app.module.ts View on Github external
import { I18nPipe } from 'jslib/angular/pipes/i18n.pipe';
import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';

@NgModule({
    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        FormsModule,
        AppRoutingModule,
        ServicesModule,
        Angulartics2Module.forRoot([Angulartics2GoogleAnalytics], {
            pageTracking: {
                clearQueryParams: true,
            },
        }),
        ToasterModule.forRoot(),
    ],
    declarations: [
        A11yTitleDirective,
        ApiActionDirective,
        AppComponent,
        AutofocusDirective,
        BlurClickDirective,
        BoxRowDirective,
        DashboardComponent,
        EnvironmentComponent,
        FallbackSrcDirective,
        I18nPipe,
        IconComponent,
        LoginComponent,
        ModalComponent,
        MoreComponent,
github bitwarden / browser / src / popup / app.module.ts View on Github external
registerLocaleData(localeZhCn, 'zh-CN');
registerLocaleData(localeZhTw, 'zh-TW');

@NgModule({
    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        FormsModule,
        AppRoutingModule,
        ServicesModule,
        Angulartics2Module.forRoot([Angulartics2GoogleAnalytics], {
            pageTracking: {
                clearQueryParams: true,
            },
        }),
        ToasterModule.forRoot(),
        InfiniteScrollModule,
        DragDropModule,
    ],
    declarations: [
        A11yTitleDirective,
        ActionButtonsComponent,
        AddEditComponent,
        ApiActionDirective,
        AppComponent,
        AttachmentsComponent,
        AutofocusDirective,
        BlurClickDirective,
        BoxRowDirective,
        CiphersComponent,
        CiphersListComponent,
        CollectionsComponent,
github FabianGosebrink / ASPNETCore-Angular-Ngrx / client / src / app / app.module.ts View on Github external
} from '@ngrx/router-store';
import { StoreModule } from '@ngrx/store';
import { ToasterModule } from 'angular2-toaster';
import { NgxElectronModule } from 'ngx-electron';
import { AppComponent } from './app.component';
import { AppRoutes } from './app.routes';
import { CoreModule } from './core/core.module';
import { HomeModule } from './home/home.module';
import { SharedModule } from './shared/shared.module';
import { CustomSerializer, reducers } from './store';

@NgModule({
  imports: [
    BrowserAnimationsModule,
    BrowserModule,
    ToasterModule.forRoot(),
    RouterModule.forRoot(AppRoutes, {
      useHash: true,
      preloadingStrategy: PreloadAllModules,
    }),
    SharedModule,
    NgxElectronModule,
    HomeModule,
    CoreModule.forRoot(),
    StoreModule.forRoot(reducers),
    EffectsModule.forRoot([]),
    StoreRouterConnectingModule,
  ],
  providers: [{ provide: RouterStateSerializer, useClass: CustomSerializer }],
  declarations: [AppComponent],

  bootstrap: [AppComponent],
github xiyuan-fengyu / ppspider / ui / src / app / app.module.ts View on Github external
declarations: [
    EditConfigDialog,
    ShutdownConfirmDialog,
    ConfirmDialog,
    JobDetailDialog,

    LongToDateStrPipe,
    AppComponent,
    QueueInfoComponent,
    JobInfoComponent,
    IconsComponent,
    JsonStringifyPipe,
    DataUiComponent,
  ],
  imports: [
    ToasterModule.forRoot(),
    AppRoutingModule,
    CommonModule,
    BrowserModule,
    BrowserAnimationsModule,
    FormsModule,
    MatIconModule,
    MatButtonModule,
    MatTabsModule,
    MatGridListModule,
    MatListModule,
    MatCardModule,
    MatFormFieldModule,
    MatInputModule,
    MatSelectModule,
    MatNativeDateModule,
    MatDatepickerModule,
github akveo / ngx-admin / src / app / pages / components / components.module.ts View on Github external
import { NgModule } from '@angular/core';

import { TreeModule } from 'angular-tree-component';
import { ToasterModule } from 'angular2-toaster';

import { ThemeModule } from '../../@theme/theme.module';
import { ComponentsRoutingModule, routedComponents } from './components-routing.module';

@NgModule({
  imports: [
    ThemeModule,
    ComponentsRoutingModule,
    TreeModule,
    ToasterModule.forRoot(),
  ],
  declarations: [
    ...routedComponents,
  ],
})
export class ComponentsModule { }