forked from akserg/ng2-dnd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
36 lines (31 loc) · 1.45 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (C) 2016 Sergey Akopkokhyants
// This project is licensed under the terms of the MIT license.
// https://github.com/akserg/ng2-dnd
import { NgModule, ModuleWithProviders } from "@angular/core";
import { CommonModule } from "@angular/common";
import {DragDropConfig} from './src/dnd.config';
import {DragDropService, DragDropSortableService} from './src/dnd.service';
import {DraggableComponent} from './src/draggable.component';
import {DroppableComponent} from './src/droppable.component';
import {SortableContainer, SortableComponent} from './src/sortable.component';
export * from './src/abstract.component';
export * from './src/dnd.config';
export * from './src/dnd.service';
export * from './src/draggable.component';
export * from './src/droppable.component';
export * from './src/sortable.component';
export const DND_PROVIDERS: any[] = [DragDropConfig, DragDropService, DragDropSortableService];
export const DND_DIRECTIVES: any[] = [DraggableComponent, DroppableComponent, SortableContainer, SortableComponent];
@NgModule({
imports: [CommonModule],
declarations: [DraggableComponent, DroppableComponent, SortableContainer, SortableComponent],
exports : [DraggableComponent, DroppableComponent, SortableContainer, SortableComponent]
})
export class DndModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: DndModule,
providers: [DragDropConfig, DragDropService, DragDropSortableService]
};
}
}