當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript ng-bootstrap.NgbModule類代碼示例

本文整理匯總了TypeScript中@ng-bootstrap/ng-bootstrap.NgbModule的典型用法代碼示例。如果您正苦於以下問題:TypeScript NgbModule類的具體用法?TypeScript NgbModule怎麽用?TypeScript NgbModule使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了NgbModule類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     imports: [
       NgbModule.forRoot()
     ],
     declarations: [ ModalComponent ]
   })
   .compileComponents();
 }));
開發者ID:Chandu3245,項目名稱:SB-Admin-BS4-Angular-4,代碼行數:9,代碼來源:modal.component.spec.ts

示例2: beforeEach

  beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [ChampionSuggestionComponent, SuggestionContextComponent, AppChampionImageMockComponent],
      imports: [NgbModule.forRoot()],
      providers: [{ provide: StaticDataService, useClass: MockStaticDataService }]

    })
      .compileComponents();
  }));
開發者ID:AJJohnsonUtah,項目名稱:statikk,代碼行數:9,代碼來源:champion-suggestion.component.spec.ts

示例3: beforeEach

 beforeEach(async () => {
     TestBed.configureTestingModule({
         declarations: [ProjectDashboardComponent, OrderBy, StartsWithPipe],
         imports: [NgbModule.forRoot(), FormsModule, HttpModule, RouterTestingModule],
         providers: [
             SprintService
         ],
     }).compileComponents();
 })
開發者ID:marianojabdala,項目名稱:skf-flask,代碼行數:9,代碼來源:project-dashboard.component.spec.ts

示例4: beforeEach

  beforeEach(async () => {


    TestBed.configureTestingModule({
      declarations: [UserManageComponent, OrderBy, StartsWithPipe],
      imports: [NgbModule.forRoot(), FormsModule, HttpModule, RouterTestingModule],
      providers: [{ provide: UserService, useClass: mocker }]
    }).compileComponents();
  })
開發者ID:marianojabdala,項目名稱:skf-flask,代碼行數:9,代碼來源:user-manage.component.spec.ts

示例5: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     imports: [NgbModule.forRoot(), ReactiveFormsModule],
     declarations: [TeamBuilderComponent, AppChampionImageMockComponent, AppSuggestionContextMockComponent,
       AppChampionSuggestionGroupMockComponent, MockChampionSearchPipe, AppLoadingSpinnerMockComponent],
     providers: [{ provide: StaticDataService, useClass: MockStaticDataService },
     { provide: TeamBuilderService, useClass: MockTeamBuilderService }]
   })
     .compileComponents();
 }));
開發者ID:AJJohnsonUtah,項目名稱:statikk,代碼行數:10,代碼來源:team-builder.component.spec.ts

示例6: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     imports: [
       FormsModule,
       NgbModule.forRoot()
     ],
     declarations: [ DatePickerComponent ]
   })
   .compileComponents();
 }));
開發者ID:Chandu3245,項目名稱:SB-Admin-BS4-Angular-4,代碼行數:10,代碼來源:date-picker.component.spec.ts

示例7: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     imports: [
       RouterTestingModule,
       TranslateModule.forRoot(),
       NgbModule.forRoot(),
       CoreModule
     ]
   })
   .compileComponents();
 }));
開發者ID:BBoyBreaker,項目名稱:iko-demo,代碼行數:11,代碼來源:shell.component.spec.ts

示例8: beforeEach

 beforeEach(async(() => {
     TestBed.configureTestingModule({
         imports: [
             RouterTestingModule,
             NgbModule.forRoot(),
         ],
         declarations: [
             AppComponent
         ],
     }).compileComponents();
 }));
開發者ID:andrask,項目名稱:CloudFlow,代碼行數:11,代碼來源:app.component.spec.ts

示例9: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     imports: [
       NgbModule.forRoot(),
       RouterTestingModule,
       TranslateModule.forRoot(),
       ReactiveFormsModule,
       CoreModule
     ],
     declarations: [LoginComponent]
   })
   .compileComponents();
 }));
開發者ID:yume117,項目名稱:starter-kit,代碼行數:13,代碼來源:login.component.spec.ts

示例10: beforeEach

	beforeEach(async(() => {
		TestBed.configureTestingModule({
			imports: [
				//HttpModule,
				NgbModule.forRoot(),
				ToastrModule.forRoot({ positionClass: 'toast-bottom-right' }),
			],
			declarations: [MainComponent],
			schemas: [NO_ERRORS_SCHEMA],
			providers: [MainService],
		})
			.compileComponents();
	}));
開發者ID:iadgov,項目名稱:WALKOFF,代碼行數:13,代碼來源:main.component.spec.ts


注:本文中的@ng-bootstrap/ng-bootstrap.NgbModule類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。