docs(getting-started): specify HammerJS install instructions (#1970)

Change GETTING_STARTED.md to include more specific HammerJS install instructions.

Closes #1889
This commit is contained in:
Marco Alvarado
2016-11-30 18:07:55 -07:00
committed by tinayuangao
parent 6433cc813b
commit 65bb982851
+14
View File
@@ -46,6 +46,20 @@ Add HammerJS to your application via [npm](https://www.npmjs.com/package/hammerj
(such as the [Google CDN](https://developers.google.com/speed/libraries/#hammerjs)), or served
directly from your app.
#### If you want to include HammerJS from npm, you can install it:
```bash
npm install --save hammerjs
npm install --save-dev @types/hammerjs
```
Import HammerJS on your app's module.
**src/app/app.module.ts**
```ts
import 'hammerjs';
```
## Configuring SystemJS
If your project is using SystemJS for module loading, you will need to add `@angular/material`
to the SystemJS configuration: