This repository was archived by the owner on Dec 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +33
-2
lines changed
Expand file tree Collapse file tree 1 file changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,18 @@ import {NgModule} from '@angular/core';
44import { Location , LocationStrategy , PathLocationStrategy } from '@angular/common' ;
55import { FormsModule } from '@angular/forms' ;
66import { 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' ;
819import { ExampleModule } from '@angular/material-examples' ;
920
1021import { MaterialDocsApp } from './material-docs-app' ;
@@ -23,6 +34,26 @@ import {ComponentPageHeader} from './pages/component-page-header/component-page-
2334import { 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 ] ,
You can’t perform that action at this time.
0 commit comments