How to use the angular-datatables.DataTablesModule.forRoot function in angular-datatables

To help you get started, we’ve selected a few angular-datatables examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dockstore / dockstore-ui2 / src / app / listentry / listentry.module.ts View on Github external
*/

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { DataTablesModule } from 'angular-datatables';
import { ClipboardModule } from 'ngx-clipboard';

import { PrivateIconModule } from '../shared/private-icon/private-icon.module';
import { ListentryComponent } from './listentry.component';

@NgModule({
  imports: [
    CommonModule,
    RouterModule,
    DataTablesModule.forRoot(),
    ClipboardModule,
    PrivateIconModule
  ],
  declarations: [ListentryComponent],
  exports: [ListentryComponent]
})
export class ListentryModule { }
github dockstore / dockstore-ui2 / src / app / listentry / listentry.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [ ListentryComponent,
      RouterLinkStubDirective ],
      schemas: [ NO_ERRORS_SCHEMA ],
      imports: [ DataTablesModule.forRoot(), ClipboardModule ],
      providers: [
        { provide: SearchService, useClass: SearchStubService },
        { provide: ListContainersService, useClass: ListContainersStubService },
        { provide: DockstoreService, useClass: SearchStubService }]
    })
    .compileComponents();
  }));

angular-datatables

Angular directive for DataTables

MIT
Latest version published 5 days ago

Package Health Score

90 / 100
Full package analysis