You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
improvements to header hierarchy and auto-generated anchors
- new anchor `/guide/getting-started#step-1`
- old anchor `/guide/getting-started#step-1-install-angular-material-npm-packages`
add link to hammerjs appendix entry
builds upon changes in PR #16654
Copy file name to clipboardExpand all lines: guides/getting-started.md
+11-9Lines changed: 11 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,13 @@
2
2
3
3
This guide explains how to setup your Angular project to begin using Angular Material. It includes information on prerequisites, installing Angular Material, and optionally displaying a sample material component in your application to verify your setup.
4
4
5
-
### New to Angular ?
5
+
*Angular Resources*
6
6
7
7
If you are new to Angular or getting started with a new Angular application, see [Angular's full Getting Started Guide](https://angular.io/start) and [Setting up your environment](https://angular.io/guide/setup-local).
8
8
9
-
For existing applications, follow the steps below to begin using Angular Material:
9
+
For existing applications, follow the steps below to begin using Angular Material.
10
10
11
-
12
-
### Step 1: Install Angular Material npm packages
11
+
### Install Angular Material
13
12
14
13
Use the Angular CLI's install [schematic](https://material.angular.io/guide/schematics) to set up your Angular Material project by running the following command:
15
14
@@ -27,7 +26,8 @@ The `ng add` command will install Angular Material, the [Component Dev Kit (CDK)
27
26
28
27
[HammerJS](http://hammerjs.github.io/) provides gesture recognition capabilities required by some components (`mat-slide-toggle`, `mat-slider`, `matToolTip`).
29
28
30
-
Please note, if you choose not to install HammerJS it can be installed later (see Appendix).
29
+
Please note, if you choose not to install HammerJS it can be installed later
30
+
(see [Appendix](#installing-hammerjs)).
31
31
32
32
3. Set up browser animations for Angular Material:
33
33
@@ -46,7 +46,7 @@ The `ng add` command will additionally perform the following configurations:
46
46
You're done! Angular Material is now configured to be used in your application.
47
47
48
48
49
-
### Step 2: Display an example Angular Material component
49
+
### Display a component
50
50
51
51
Let's display a slider component in your app and verify that everything works.
52
52
@@ -81,9 +81,11 @@ You should see the material slider component on the page.
81
81
In addition to the install schematic, Angular Material comes with [several schematics](https://material.angular.io/guide/schematics) (like nav, table, address-form, etc.) that can be used to easily generate pre-built components in your application.
0 commit comments