From 110b1650b7e9b5d53ceddc2a22951e73879b68ac Mon Sep 17 00:00:00 2001 From: crisbeto Date: Sun, 4 Dec 2016 14:17:04 +0100 Subject: [PATCH] docs(getting-started): include a section about adding hammerjs to the config types 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. --- GETTING_STARTED.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/GETTING_STARTED.md b/GETTING_STARTED.md index 2c0b7e7fb674..724dbf0cdd77 100644 --- a/GETTING_STARTED.md +++ b/GETTING_STARTED.md @@ -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: