mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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.
This commit is contained in:
committed by
mmalerba
parent
bdb2958881
commit
a1acf991be
@@ -60,6 +60,18 @@ Import HammerJS on your app's module.
|
||||
import 'hammerjs';
|
||||
```
|
||||
|
||||
Finally, you need to add `hammerjs` to the `types` section of your `tsconfig.json` file:
|
||||
|
||||
```json
|
||||
{
|
||||
"compilerOptions": {
|
||||
"types": [
|
||||
"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