Skip to content

Commit 65bb982

Browse files
Marco Alvaradotinayuangao
authored andcommitted
docs(getting-started): specify HammerJS install instructions (#1970)
Change GETTING_STARTED.md to include more specific HammerJS install instructions. Closes #1889
1 parent 6433cc8 commit 65bb982

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

GETTING_STARTED.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ 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+
#### If you want to include HammerJS from npm, you can install it:
50+
51+
```bash
52+
npm install --save hammerjs
53+
npm install --save-dev @types/hammerjs
54+
```
55+
56+
Import HammerJS on your app's module.
57+
58+
**src/app/app.module.ts**
59+
```ts
60+
import 'hammerjs';
61+
```
62+
4963
## Configuring SystemJS
5064
If your project is using SystemJS for module loading, you will need to add `@angular/material`
5165
to the SystemJS configuration:

0 commit comments

Comments
 (0)