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 (angular#6225)

* docs(hammerjs): new import location for Universal

As mentioned in angular#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 angular#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 crisbeto committed Aug 5, 2017
1 parent a37e497 commit a1b5459
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 a1b5459

Please sign in to comment.