當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。