Skip to content

Commit 5d3f515

Browse files
ahasalljelbourn
authored andcommitted
docs: clarify docs on creating a custom material module (#15229)
1 parent fe2881d commit 5d3f515

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

guides/getting-started.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ import {MatButtonModule, MatCheckboxModule} from '@angular/material';
8282
export class PizzaPartyAppModule { }
8383
```
8484

85-
Alternatively, you can create a separate NgModule that imports all of the
86-
Angular Material components that you will use in your application. You can then
87-
include this module wherever you'd like to use the components.
85+
Alternatively, you can create a separate NgModule that imports and then re-exports all of the Anguar Material components that you will use in your application. By exporting them again, other modules can simply include your `CustomMaterialModule` wherever Material components are needed, and automatically get all of the exported Material modules. A good place for importing/exporting the application-wide Material modules is the [SharedModule](https://angular.io/guide/ngmodule-faq#sharedmodule).
8886

8987
```ts
9088
import {MatButtonModule, MatCheckboxModule} from '@angular/material';

0 commit comments

Comments
 (0)