Skip to content

Commit 1af2ce6

Browse files
cyrilletuzitinayuangao
authored andcommitted
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.
1 parent 5967f6e commit 1af2ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ To install via npm, use the following command:
113113
npm install --save hammerjs
114114
```
115115

116-
After installing, import it on your app's root module.
116+
After installing, import it on your app's entry point (e.g. `src/main.ts`).
117117
```ts
118118
import 'hammerjs';
119119
```

0 commit comments

Comments
 (0)