Skip to content

Commit

Permalink
docs(getting-started): mention importing hammer in same file as boots…
Browse files Browse the repository at this point in the history
…trap (#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.
  • Loading branch information
cyrilletuzi authored and tinayuangao committed Aug 4, 2017
1 parent 5967f6e commit 1af2ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
```
Expand Down

0 comments on commit 1af2ce6

Please sign in to comment.