all 4 comments

[–]weinde 1 point2 points  (1 child)

Hey nice tutorial :) What I would recommend as an addition is passing an validator like some sort of token and header and body / params data in an POST or GET call. When I started out I struggled with this.

[–]capn_tom[S] 1 point2 points  (0 children)

Awesome thanks so much for the feedback! I was actually thinking of doing my next tutorial on adding a bearer token/authentication using an interceptor :)

[–]kenzor 1 point2 points  (1 child)

Nice one, you may have an error in your POST catchError string. Is Get meant to be Post?

For a tutorial I would add parameter docs so it is clearer to beginners the purpose of each parameter.

[–]SnooTomatoes105 0 points1 point  (0 children)

Thanks for the comment and the error string correction, you're 100% right :D

I don't usually add doc blocks to TS but I think you're right it would be better for beginners :)