From b6c54d00a5c353d2f68c340cb25f22df52f886c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1?= Date: Sat, 8 Apr 2017 15:31:43 +0200 Subject: [PATCH] guides(getting-started): update `MaterialModule` section --- guides/getting-started.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/guides/getting-started.md b/guides/getting-started.md index 202ed5e12e6c..318220c69545 100644 --- a/guides/getting-started.md +++ b/guides/getting-started.md @@ -43,19 +43,20 @@ import {NoopAnimationsModule} from '@angular/platform-browser/animations'; export class PizzaPartyAppModule { } ``` -## Step 3: Import the Module +## Step 3: Create Your "Material" Module -Add MaterialModule as an import in your app's root NgModule. +Create a module that imports and exports modules of material components your app uses and add it as an import in your app's root NgModule. Read more about module creation at [angular.io](https://angular.io/docs/ts/latest/guide/ngmodule.html#!#shared-module). ```ts -import {MaterialModule} from '@angular/material'; +import {MdButtonModule, MdInputModule} from '@angular/material'; @NgModule({ ... - imports: [MaterialModule], + imports: [MdButtonModule, MdInputModule], + exports: [MdButtonModule, MdInputModule], ... }) -export class PizzaPartyAppModule { } +export class MyMaterialModule { } ``` ## Step 4: Include Theming