ng2-bootstrap-base-modified
Version:
Native Angular Bootstrap Components Typeahead modified
17 lines (14 loc) • 535 B
text/typescript
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SortableComponent } from './sortable.component';
import { DraggableItemService } from './draggable-item.service';
({
declarations: [SortableComponent],
imports: [CommonModule],
exports: [SortableComponent]
})
export class SortableModule {
public static forRoot(): ModuleWithProviders {
return {ngModule: SortableModule, providers: [DraggableItemService]};
}
}