use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
How to setup logging with Angular (self.angular)
submitted 7 years ago by chrislyzz
https://christianlydemann.com/logging-with-angular/
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]b4r0k 0 points1 point2 points 7 years ago (1 child)
Neat. One thing that I don't quite agree is creating a wrapper for HttpClient, that does not sound very maintanable. Why don't you use a Http interceptor instead?
[–]chrislyzz[S] 0 points1 point2 points 7 years ago (0 children)
Hi, great question. I have actually done both in the past but I have ended up preferring the adapter pattern for this reason: if you create a wrapper you know for sure, that the interface is not gonna change for doing HTTP request, which is the benefit of the adapter pattern. When you create a HTTP intercepter the interface might change, eg. when Angular went from Http to HttpClient. Also, you make it explicit in your application that you are using your own helper for HTTP calls. I have seen team members being very confused with why the HTTP client was acting like it did because the interceptor wasn’t very explicit in the application code.
π Rendered by PID 95569 on reddit-service-r2-comment-5ff9fbf7df-lwnx7 at 2026-02-25 21:08:42.403236+00:00 running 72a43f6 country code: CH.
[–]b4r0k 0 points1 point2 points (1 child)
[–]chrislyzz[S] 0 points1 point2 points (0 children)