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


TypeScript NgbModule.forRoot方法代码示例

本文整理汇总了TypeScript中@ng-bootstrap/ng-bootstrap.NgbModule.forRoot方法的典型用法代码示例。如果您正苦于以下问题:TypeScript NgbModule.forRoot方法的具体用法?TypeScript NgbModule.forRoot怎么用?TypeScript NgbModule.forRoot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在@ng-bootstrap/ng-bootstrap.NgbModule的用法示例。


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

示例1: beforeEach

 beforeEach(async () => {
   TestBed.configureTestingModule({
     declarations: [ProjectListComponent],
     imports: [NgbModule.forRoot(), FormsModule, HttpModule, RouterTestingModule],
     providers: [{ provide: ProjectService, useClass: mockService }]
   }).compileComponents();
 })
开发者ID:marianojabdala,项目名称:skf-flask,代码行数:7,代码来源:project-list.component.spec.ts

示例2: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     imports: [
       RouterTestingModule,
       FormsModule,
       ReactiveFormsModule,
       NgbModule.forRoot(),
       PageHeaderModule
     ],
     declarations: [
       BsComponentComponent,
       ButtonsComponent,
       AlertComponent,
       ModalComponent,
       CollapseComponent,
       DatePickerComponent,
       DropdownComponent,
       PaginationComponent,
       PopOverComponent,
       ProgressbarComponent,
       TabsComponent,
       TooltipComponent,
       TimepickerComponent
     ]
   })
   .compileComponents();
 }));
开发者ID:Chandu3245,项目名称:SB-Admin-BS4-Angular-4,代码行数:27,代码来源:bs-component.component.spec.ts

示例3: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     declarations: [ UserAddComponent ],
     imports:[NgbModule.forRoot(), FormsModule, RouterTestingModule, HttpModule]
   })
   .compileComponents();
 }));
开发者ID:marianojabdala,项目名称:skf-flask,代码行数:7,代码来源:user-add.component.spec.ts

示例4: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     declarations: [ 
       PlayersListComponent 
     ],
     imports: [
       HttpClientTestingModule,
       NgbModule.forRoot(),
       ReactiveFormsModule,
       RouterTestingModule
     ],
     providers: [
       { 
         provide: ActivatedRoute,
         useValue: {
           snapshot: {
             paramMap: convertToParamMap({
               groupName: 'Under 10',
               yearOfBirth: '2008'
             })
           }
         }
       },
       NgbModal,
       PlayersService
     ]
   })
   .compileComponents();
 }));
开发者ID:emmettos,项目名称:CarraigOgRegister,代码行数:29,代码来源:players-list.component.spec.ts

示例5: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     declarations: [ DashboardComponent ],
     imports:[NgbModule.forRoot(), RouterTestingModule]
   })
   .compileComponents();
 }));
开发者ID:marianojabdala,项目名称:skf-flask,代码行数:7,代码来源:dashboard.component.spec.ts

示例6: beforeEach

 beforeEach(async(() => {
     TestBed.configureTestingModule({
         imports: [NgbModule.forRoot()],
         declarations: [CountdownComponent]
     })
         .compileComponents();
 }));
开发者ID:andrask,项目名称:CloudFlow,代码行数:7,代码来源:countdown.component.spec.ts

示例7: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     declarations: [ 
       ManageCoachesComponent,
       CoachPopupComponent
     ],
     imports: [
       HttpClientTestingModule,
       ReactiveFormsModule,
       NgbModule.forRoot(),
       ToasterModule.forRoot(),
       SharedModule
     ],
     providers: [
       CoachesService,
       AuthorizationService,
       ValidationService,
       ToasterService,
       NgbActiveModal
     ],
     schemas: [ 
       NO_ERRORS_SCHEMA 
     ]
   })
   .compileComponents();
 }));
开发者ID:emmettos,项目名称:CarraigOgRegister,代码行数:26,代码来源:manage-coaches.component.spec.ts

示例8: beforeEach

 beforeEach(async () => {
   TestBed.configureTestingModule({
     declarations: [KnowledgebaseComponent, OrderBy, StartsWithPipe],
     imports: [NgbModule.forRoot(), FormsModule, HttpModule],
     providers: [{ provide: KnowledgebaseService, useClass: mockService }]
   }).compileComponents();
 })
开发者ID:marianojabdala,项目名称:skf-flask,代码行数:7,代码来源:knowledgebase.component.spec.ts

示例9: 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

示例10: beforeEach

 beforeEach(async(() => {
     TestBed.configureTestingModule({
         imports: [SharedModule, NgbModule.forRoot(), CopyableModule],
         declarations: [InfoItemComponent]
     })
         .compileComponents();
 }));
开发者ID:andrask,项目名称:CloudFlow,代码行数:7,代码来源:info-item.component.spec.ts


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