From 1af2ce6e1797a05934f1d30b9c1fc1b625d68bcf Mon Sep 17 00:00:00 2001 From: Cyrille Tuzi Date: Fri, 4 Aug 2017 23:00:09 +0200 Subject: [PATCH] docs(getting-started): mention importing hammer in same file as bootstrap (#6225) * docs(hammerjs): new import location for Universal As mentioned in #308, if hammerjs is imported in AppModule, Universal server-side rendering will fail as hammerjs is a browser specific library using window, document... So it must be imported in browser entry point src/main.ts instead. * docs(hammerjs): new import location for Universal As mentioned in #308, if hammerjs is imported in AppModule, Universal server-side rendering will fail as hammerjs is a browser specific library using window, document... So it must be imported in browser entry point src/main.ts instead. --- guides/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/getting-started.md b/guides/getting-started.md index 15e07681aa5..d7d28ba9b55 100644 --- a/guides/getting-started.md +++ b/guides/getting-started.md @@ -113,7 +113,7 @@ To install via npm, use the following command: npm install --save hammerjs ``` -After installing, import it on your app's root module. +After installing, import it on your app's entry point (e.g. `src/main.ts`). ```ts import 'hammerjs'; ```