Closed aeropagz closed 3 years ago
Hey, @aeropagz thanks for the feedback! Just fixed it in 875490a. Can you give some more detailed explanation for your errors with the HTTPClientModule?
Thanks :)
Ah great!
Yes sure console error was:
Error: src/app/book-list/book-list.component.ts:12:10 - error TS2314: Generic type 'Observable<T>' requires 1 type argument(s). 12 books$: Observable;
I tried to fix this by editing this line to books$: Observable<Object>
but still gave an error which was:
Error: node_modules/@angular/common/http/http.d.ts:2826:22 - error NG6002: Appears in the NgModule.imports of, but could not be resolved to an NgModule class.
After Ctrl+c and ng server
the app started with no problem (with original code books$: Observable;
).
Ah! We can avoid that by beginning with a typed generic 6dc23d0e3091db82a5d4e389a2927f64da8e9df9
fixed! Thanks!
You write in the text, that you should choose routing but in example you write "NO".
Hierbei werdet ihr gefragt ob ihr das Routing Module installieren wollt: Ja.
Would you like to add Angular routing? No
Also I experienced some errors after implementing the HTTPClientModule which were fixed by restarting the angular app. Maybe you could create a hint for this.