Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 0dccb6b

Browse files
committed
Remove MaterialModule
1 parent 6abaf5c commit 0dccb6b

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

src/app/app-module.ts

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@ import {NgModule} from '@angular/core';
44
import {Location, LocationStrategy, PathLocationStrategy} from '@angular/common';
55
import {FormsModule} from '@angular/forms';
66
import {HttpModule} from '@angular/http';
7-
import {MaterialModule, MdNativeDateModule} from '@angular/material';
7+
import {
8+
MdButtonModule,
9+
MdCardModule,
10+
MdGridListModule,
11+
MdIconModule,
12+
MdListModule,
13+
MdMenuModule,
14+
MdNativeDateModule,
15+
MdSidenavModule, MdTabsModule,
16+
MdToolbarModule,
17+
MdTooltipModule,
18+
} from '@angular/material';
819
import {ExampleModule} from '@angular/material-examples';
920

1021
import {MaterialDocsApp} from './material-docs-app';
@@ -23,6 +34,26 @@ import {ComponentPageHeader} from './pages/component-page-header/component-page-
2334
import {StyleManager} from './shared/style-manager/style-manager';
2435

2536

37+
export const MATERIAL_COMPONENTS_USED = [
38+
MdButtonModule,
39+
MdCardModule,
40+
MdGridListModule,
41+
MdIconModule,
42+
MdListModule,
43+
MdMenuModule,
44+
MdSidenavModule,
45+
MdTabsModule,
46+
MdToolbarModule,
47+
MdTooltipModule,
48+
];
49+
50+
@NgModule({
51+
imports: MATERIAL_COMPONENTS_USED,
52+
exports: MATERIAL_COMPONENTS_USED,
53+
})
54+
export class DocsMaterialModule {}
55+
56+
2657
@NgModule({
2758
declarations: [
2859
MaterialDocsApp,
@@ -47,7 +78,7 @@ import {StyleManager} from './shared/style-manager/style-manager';
4778
SharedModule,
4879
FormsModule,
4980
HttpModule,
50-
MaterialModule,
81+
DocsMaterialModule,
5182
MdNativeDateModule,
5283
routing,
5384
],

0 commit comments

Comments
 (0)