forked from angular-split/angular-split
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.ts
More file actions
28 lines (25 loc) · 902 Bytes
/
module.ts
File metadata and controls
28 lines (25 loc) · 902 Bytes
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
import { NgModule, ModuleWithProviders } from '@angular/core'
import { CommonModule } from '@angular/common'
import { SplitComponent } from './component/split.component'
import { SplitAreaDirective } from './directive/split-area.directive'
@NgModule({
imports: [CommonModule],
declarations: [SplitComponent, SplitAreaDirective],
exports: [SplitComponent, SplitAreaDirective],
})
export class AngularSplitModule {
public static forRoot(): ModuleWithProviders<AngularSplitModule> {
console.warn(`AngularSplitModule.forRoot() is deprecated and will be removed in v6`)
return {
ngModule: AngularSplitModule,
providers: [],
}
}
public static forChild(): ModuleWithProviders<AngularSplitModule> {
console.warn(`AngularSplitModule.forChild() is deprecated and will be removed in v6`)
return {
ngModule: AngularSplitModule,
providers: [],
}
}
}