Skip to content

Commit 13dd558

Browse files
committed
docs(getting-started): specify HammerJS install instructions
Change GETTING_STARTED.md to include more specific HammerJS install instructions. Closes #1889
1 parent 8780720 commit 13dd558

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

GETTING_STARTED.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,18 @@ Add HammerJS to your application via [npm](https://www.npmjs.com/package/hammerj
4646
(such as the [Google CDN](https://developers.google.com/speed/libraries/#hammerjs)), or served
4747
directly from your app.
4848

49+
```bash
50+
npm install --save hammerjs
51+
npm install --save-dev @types/hammerjs
52+
```
53+
54+
Import HammerJS on your app's module.
55+
56+
**src/app/app.module.ts**
57+
```ts
58+
import 'hammerjs';
59+
```
60+
4961
## Configuring SystemJS
5062
If your project is using SystemJS for module loading, you will need to add `@angular/material`
5163
to the SystemJS configuration:

0 commit comments

Comments
 (0)