当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript ngx-toastr.ToastrModule类代码示例

本文整理汇总了TypeScript中ngx-toastr.ToastrModule的典型用法代码示例。如果您正苦于以下问题:TypeScript ToastrModule类的具体用法?TypeScript ToastrModule怎么用?TypeScript ToastrModule使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ToastrModule类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: beforeEach

	beforeEach(async(() => {
		TestBed.configureTestingModule({
			imports: [
				HttpModule,
				NgbModule.forRoot(),
				NgxDatatableModule,
				JwtModule.forRoot({
					config: {
						tokenGetter: jwtTokenGetter,
						blacklistedRoutes: ['/login', '/api/auth', '/api/auth/logout', '/api/auth/refresh']
					}
				}),
				ToastrModule.forRoot({ positionClass: 'toast-bottom-right' })
				// FormsModule,
				// ReactiveFormsModule,
			],
			declarations: [DevicesComponent],
			schemas: [NO_ERRORS_SCHEMA],
			providers: [DevicesService, JwtInterceptor, 
			// Providing JwtInterceptor allow to inject JwtInterceptor manually into RefreshTokenInterceptor
			{
				provide: HTTP_INTERCEPTORS,
				useExisting: JwtInterceptor,
				multi: true
			},
			{
				provide: HTTP_INTERCEPTORS,
				useClass: RefreshTokenInterceptor,
				multi: true
			}],
		})
		.compileComponents();
	}));
开发者ID:iadgov,项目名称:WALKOFF,代码行数:33,代码来源:devices.component.spec.ts

示例2: beforeEach

 beforeEach(async(() => {
     TestBed.configureTestingModule({
         imports: [
             NoopAnimationsModule,
             RouterTestingModule,
             MaterialModule,
             FormsModule,
             FormHelperModule,
             ReactiveFormsModule,
             HttpClientTestingModule,
             NgxsModule.forRoot([AppState, BrowseStoragesState]),
             ToastrModule.forRoot()
         ],
         providers: [
             StorageManagerService,
             {provide: MAT_DIALOG_DATA, useValue: {}},
             {
                 provide: MatDialogRef, useValue: {
                     afterClosed: () => of(null),
                     backdropClick: () => of(null),
                     close: () => of(null),
                     updateSize: () => of(null)
                 }
             }
         ],
         declarations: [StorageFormDialogComponent]
     }).compileComponents();
 }));
开发者ID:strongbox,项目名称:strongbox-web-ui,代码行数:28,代码来源:storage-form.dialog.component.spec.ts

示例3: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     imports: [
       HttpClientModule,
       RouterTestingModule,
       BrowserAnimationsModule,
       MaterialModule,
       ToastrModule.forRoot()
     ],
     declarations: [
       PcpolicyComponent,
       HeaderComponent,
       NavbarComponent,
       InfokitComponent,
       ButtonNavComponent
     ],
     providers: [
       DashboardService,
       APIService,
       AuthService,
       NavbarService,
       LanguageService,
       ToastrService,
       InfokitService,
       SharedDataService,
       BadgeService,
       NotifyService,
       LeaderBoardService
     ]
   })
     .compileComponents();
 }));
开发者ID:systers,项目名称:PC-Prep-Kit,代码行数:32,代码来源:pcpolicy.component.spec.ts

示例4: beforeEach

 beforeEach(async(() => {
     TestBed.configureTestingModule({
         imports: [
             BrowserModule,
             RouterTestingModule,
             DragDropModule,
             MaterialModule,
             FormsModule,
             FormHelperModule,
             LayoutModule,
             ReactiveFormsModule,
             HttpClientTestingModule,
             NgxsModule.forRoot([AppState, SessionState]),
             NgxsFormPluginModule,
             NgProgressModule,
             NgProgressHttpModule,
             NoopAnimationsModule,
             ToastrModule.forRoot(),
         ],
         providers: [
             {
                 provide: ActivatedRoute,
                 useValue: {
                     paramMap: of(convertToParamMap({
                         storageId: 'storage-id',
                         type: RepositoryTypeEnum.HOSTED.toLowerCase()
                     }))
                 }
             }
         ],
         declarations: [ManageRepositoryComponent]
     }).compileComponents();
 }));
开发者ID:strongbox,项目名称:strongbox-web-ui,代码行数:33,代码来源:manage-repository.component.spec.ts

示例5: beforeEach

  beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [PicturePuzzleComponent,
        ButtonNavComponent, LevelNavigateComponent],
      imports: [
        RouterTestingModule,
        HttpClientModule,
        ToastrModule.forRoot(),
        OverlayModule,
        MaterialModule
      ],
      providers: [
        SharedDataService,
        DashboardService,
        APIService,
        LanguageService,
        ToastrService,
        PerformanceDisplayService,
        MatDialog,
        ToastrService,
        NotifyService,
        BadgeService,
        LeaderBoardService

      ]
    })
      .compileComponents();
  }));
开发者ID:systers,项目名称:PC-Prep-Kit,代码行数:28,代码来源:activity-3.component.spec.ts

示例6: beforeEach

    beforeEach(async(() => {
        TestBed.configureTestingModule({
            imports: [
                HttpClientTestingModule,
                RouterTestingModule,

                BrowserAnimationsModule,
                MaterialModule,
                NgxsModule.forRoot([SessionState]),
                NgxsFormPluginModule.forRoot(),

                ToastrModule.forRoot(),
            ],
            providers: [
                {
                    provide: HTTP_INTERCEPTORS,
                    useClass: ErrorInterceptor,
                    multi: true,
                }
            ]
        });

        interceptor = TestBed.get(ErrorInterceptor);
        toastr = TestBed.get(ToastrService);
        toastrSpy = spyOn(toastr, 'error').and.callThrough();
        backend = TestBed.get(HttpTestingController);
        client = TestBed.get(HttpClient);
        store = TestBed.get(Store);
        actions = TestBed.get(Actions);
    }));
开发者ID:strongbox,项目名称:strongbox-web-ui,代码行数:30,代码来源:error.interceptor.spec.ts

示例7: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     imports: [
       RouterTestingModule,
       HttpClientModule,
       ToastrModule.forRoot(),
       OverlayModule,
       MaterialModule
     ],
     declarations: [MemoryGameComponent,
       ButtonNavComponent, LevelNavigateComponent],
     providers: [
       DashboardService,
       APIService,
       AuthService,
       SharedDataService,
       LanguageService,
       ToastrService,
       PerformanceDisplayService,
       MatDialog,
       NotifyService,
       BadgeService,
       LeaderBoardService,
       {provide: ActivatedRoute, useValue: {params: Observable.of({level: MOCK_LEVEL})}}
     ]
   }).compileComponents();
 }));
开发者ID:systers,项目名称:PC-Prep-Kit,代码行数:27,代码来源:activity-2.component.spec.ts

示例8: beforeEach

	beforeEach(async(() => {
		TestBed.configureTestingModule({
			imports: [
				HttpModule,
				// NgbModule.forRoot(),
				NgxDatatableModule,
				ToastrModule.forRoot({ positionClass: 'toast-bottom-right' }),
				// FormsModule,
				// ReactiveFormsModule,
			],
			declarations: [ExecutionComponent],
			schemas: [NO_ERRORS_SCHEMA],
			providers: [ExecutionService, JwtInterceptor, 
				// Providing JwtInterceptor allow to inject JwtInterceptor manually into RefreshTokenInterceptor
				{
					provide: HTTP_INTERCEPTORS,
					useExisting: JwtInterceptor,
					multi: true
				},
				{
					provide: HTTP_INTERCEPTORS,
					useClass: RefreshTokenInterceptor,
					multi: true
			}],
		})
			.compileComponents();
	}));
开发者ID:iadgov,项目名称:WALKOFF,代码行数:27,代码来源:execution.component.spec.ts

示例9: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     imports: [NgbModule, BlockUIModule.forRoot(), ToastrModule.forRoot(), BrowserAnimationsModule],
     declarations: [ProjectsComponent, ProjectPeriodPipe],
     providers: [projectServiceProviderMock(), ToastrService],
   }).compileComponents();
 }));
开发者ID:fischermatte,项目名称:geolud,代码行数:7,代码来源:projects.component.spec.ts

示例10: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     declarations: [DoctorchatComponent, ButtonNavComponent],
     imports: [FormsModule, ToastrModule.forRoot(), RouterTestingModule, OverlayModule],
     providers: [DoctorService, APIService, HttpClient, HttpHandler, SharedDataService, DashboardService, ToastrService, InfokitService, LanguageService,
                 PerformanceDisplayService, MatDialog, BotService]
   })
     .compileComponents();
 }));
开发者ID:systers,项目名称:PC-Prep-Kit,代码行数:9,代码来源:activity-3.component.spec.ts


注:本文中的ngx-toastr.ToastrModule类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。