mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
Yarn option for Gesture hammerjs (#9417)
This commit is contained in:
@@ -135,10 +135,17 @@ You can add HammerJS to your application via [npm](https://www.npmjs.com/package
|
||||
directly from your app.
|
||||
|
||||
To install via npm, use the following command:
|
||||
|
||||
#### NPM
|
||||
```bash
|
||||
npm install --save hammerjs
|
||||
```
|
||||
|
||||
#### Yarn
|
||||
```bash
|
||||
yarn add hammerjs
|
||||
```
|
||||
|
||||
After installing, import it on your app's entry point (e.g. `src/main.ts`).
|
||||
```ts
|
||||
import 'hammerjs';
|
||||
|
||||
Reference in New Issue
Block a user