mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
tinayuangao
parent
6433cc813b
commit
65bb982851
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user