Skip to content

Commit a1acf99

Browse files
crisbetommalerba
authored andcommitted
docs(getting-started): include a section about adding hammerjs to the config types (#2076)
Adds a section to the docs, mentioning that the user needs to add `hammerjs` to the `tsconfig.json`, in order to avoid some compilation errors. Fixes #1944.
1 parent bdb2958 commit a1acf99

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
@@ -60,6 +60,18 @@ Import HammerJS on your app's module.
6060
import 'hammerjs';
6161
```
6262

63+
Finally, you need to add `hammerjs` to the `types` section of your `tsconfig.json` file:
64+
65+
```json
66+
{
67+
"compilerOptions": {
68+
"types": [
69+
"hammerjs"
70+
]
71+
}
72+
}
73+
```
74+
6375
## Configuring SystemJS
6476
If your project is using SystemJS for module loading, you will need to add `@angular/material`
6577
to the SystemJS configuration:

0 commit comments

Comments
 (0)