@ng-bootstrap/ng-bootstrap#NgbPaginationModule TypeScript Examples

The following examples show how to use @ng-bootstrap/ng-bootstrap#NgbPaginationModule. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: app.module.ts    From labely with GNU General Public License v3.0 6 votes vote down vote up
@NgModule({
  declarations: [
    AppComponent,
    CsvComponent,
    PaginationContainerComponent,
    AddLabelComponent,
    HomeComponent,
    ImporterComponent,
    ItemsContainerComponent,
    TextComponent,
    LabelComponent
  ],
  imports: [BrowserModule, FormsModule, ReactiveFormsModule, AppRoutingModule, NgbPaginationModule],
  providers: [LabelyService],
  bootstrap: [AppComponent]
})
export class AppModule {}
Example #2
Source File: pagination-container.component.spec.ts    From labely with GNU General Public License v3.0 6 votes vote down vote up
describe('PaginationContainerComponent', () => {
  let component: PaginationContainerComponent;
  let fixture: ComponentFixture<PaginationContainerComponent>;

  beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [PaginationContainerComponent],
      imports: [NgbPaginationModule, FormsModule]
    }).compileComponents();
  }));

  beforeEach(() => {
    fixture = TestBed.createComponent(PaginationContainerComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeTruthy();
  });
});
Example #3
Source File: block.module.ts    From distributed-compliance-ledger with Apache License 2.0 6 votes vote down vote up
@NgModule({
  declarations: [
    BlockListComponent,
    BlockDetailsComponent
  ],
  imports: [
    CommonModule,
    BlockRoutingModule,
    NgbPaginationModule
  ]
})
export class BlockModule {
}