How to use the ng2-toastr.ToastModule.forRoot function in ng2-toastr

To help you get started, we’ve selected a few ng2-toastr 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 ceph / ceph / src / pybind / mgr / dashboard / frontend / src / app / core / auth / user-list / user-list.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [SharedModule, ToastModule.forRoot(), RouterTestingModule, HttpClientTestingModule],
      declarations: [UserListComponent]
    }).compileComponents();
  }));
github ceph / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / block / rbd-snapshot-form / rbd-snapshot-form.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [
        ReactiveFormsModule,
        ComponentsModule,
        HttpClientTestingModule,
        ServicesModule,
        ApiModule,
        ToastModule.forRoot()
      ],
      declarations: [ RbdSnapshotFormComponent ],
      providers: [ BsModalRef, BsModalService, AuthStorageService ]
    })
    .compileComponents();
  }));
github ronzeidman / ng2-ui-auth-example / client / src / client.module.ts View on Github external
import {ToastModule} from 'ng2-toastr';
import {ErrorHandleService} from './services/error-handle.service';
import {FormHelperService} from './services/form-helper.service';
/**
 * Created by Ron on 03/10/2016.
 */

@NgModule({
    imports: [
        BrowserModule,
        HttpModule,
        FormsModule,
        ReactiveFormsModule,
        routing,
        Ng2UiAuthModule.forRoot(MyAuthConfig),
        ToastModule.forRoot(),
    ],
    providers: [
        ErrorHandleService,
        FormHelperService,
        CLIENT_ROUTER_PROVIDERS
    ],
    declarations: [
        ClientComponent,
        MainComponent,
        LoginComponent,
        SignupComponent
    ],
    bootstrap: [
        ClientComponent
    ]
})
github efstathiosntonas / ngx-form / src / app / app.module.ts View on Github external
AdminPageComponent,
    EditUsersFormsComponent,
    AdminComponent,
    UserProfileComponent,
    ChangePasswordComponent
  ],
  imports     : [
    BrowserModule,
    CommonModule,
    FormsModule,
    HttpModule,
    RouterModule,
    ReactiveFormsModule,
    routing,
    BrowserAnimationsModule,
    ToastModule.forRoot(),
    Ng2Bs3ModalModule
  ],
  providers   : [
    AuthGuardService,
    {provide: LocationStrategy, useClass: HashLocationStrategy},
    AuthService,
    ErrorService,
    FormService,
    AdminService,
    AdminGuardService,
    ProfileService,
    {provide: ToastOptions, useClass: CustomOption},
    {
      provide   : AuthHttp,
      useFactory: getAuthHttp,
      deps      : [Http]
github EvictionLab / eviction-maps / src / app / ranking / ranking-tool / evictions / evictions.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [
        UiModule,
        TranslateModule.forRoot(),
        RouterTestingModule.withRoutes([
          { path: 'evictions', component: EvictionsComponent},
          { path: 'evictors', component: EvictionsComponent}
        ]),
        RankingModule.forRoot(config),
        ServicesModule.forRoot(),
        ToastModule.forRoot()
      ]
    });
    TestBed.overrideComponent(EvictionsComponent, {
      set: {
        providers: [
          { provide: RankingService, useClass: RankingServiceStub },
          { provide: TranslatePipe, useClass: TranslatePipeMock },
          DecimalPipe
        ]
      }
    })
    .compileComponents();
  }));

ng2-toastr

bootstrap style of toast for modern angular

ISC
Latest version published 8 years ago

Package Health Score

42 / 100
Full package analysis

Popular ng2-toastr functions