Skip to content

Commit 377a3bb

Browse files
authored
fix: deprecate CoreMore (#6588)
Since most of this functionality has been moved into `@angular/cdk`, it no longer makes sense to blob it all together in one NgModule inside `@angular/material`.
1 parent deca032 commit 377a3bb

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

src/demo-app/demo-material-module.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import {
66
MdCardModule,
77
MdCheckboxModule,
88
MdChipsModule,
9-
MdCoreModule,
10-
MdTableModule,
119
MdDatepickerModule,
1210
MdDialogModule,
1311
MdExpansionModule,
@@ -29,12 +27,19 @@ import {
2927
MdSlideToggleModule,
3028
MdSnackBarModule,
3129
MdSortModule,
30+
MdTableModule,
3231
MdTabsModule,
3332
MdToolbarModule,
3433
MdTooltipModule,
3534
StyleModule
3635
} from '@angular/material';
3736
import {CdkTableModule} from '@angular/cdk/table';
37+
import {A11yModule} from '@angular/cdk/a11y';
38+
import {BidiModule} from '@angular/cdk/bidi';
39+
import {OverlayModule} from '@angular/cdk/overlay';
40+
import {PlatformModule} from '@angular/cdk/platform';
41+
import {ObserversModule} from '@angular/cdk/observers';
42+
import {PortalModule} from '@angular/cdk/portal';
3843

3944
/**
4045
* NgModule that includes all Material modules that are required to serve the demo-app.
@@ -57,7 +62,6 @@ import {CdkTableModule} from '@angular/cdk/table';
5762
MdInputModule,
5863
MdListModule,
5964
MdMenuModule,
60-
MdCoreModule,
6165
MdPaginatorModule,
6266
MdProgressBarModule,
6367
MdProgressSpinnerModule,
@@ -74,7 +78,13 @@ import {CdkTableModule} from '@angular/cdk/table';
7478
MdTooltipModule,
7579
MdNativeDateModule,
7680
CdkTableModule,
77-
StyleModule
81+
StyleModule,
82+
A11yModule,
83+
BidiModule,
84+
ObserversModule,
85+
OverlayModule,
86+
PlatformModule,
87+
PortalModule,
7888
]
7989
})
8090
export class DemoMaterialModule {}

src/lib/core/core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export {
129129
showOnDirtyErrorStateMatcher
130130
} from './error/error-options';
131131

132+
/** @deprecated */
132133
@NgModule({
133134
imports: [
134135
MdLineModule,

0 commit comments

Comments
 (0)