From eb0df397bcde24ca693697aad9ed994198b6199a Mon Sep 17 00:00:00 2001 From: Amadou Sall Date: Mon, 18 Feb 2019 22:19:12 +0100 Subject: [PATCH] docs: update documentation on creating a custom material module --- guides/getting-started.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/guides/getting-started.md b/guides/getting-started.md index e8d9f65ecdbd..c0106fd01cb1 100644 --- a/guides/getting-started.md +++ b/guides/getting-started.md @@ -82,9 +82,7 @@ import {MatButtonModule, MatCheckboxModule} from '@angular/material'; export class PizzaPartyAppModule { } ``` -Alternatively, you can create a separate NgModule that imports all of the -Angular Material components that you will use in your application. You can then -include this module wherever you'd like to use the components. +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). ```ts import {MatButtonModule, MatCheckboxModule} from '@angular/material';