documentation icon indicating copy to clipboard operation
documentation copied to clipboard

[Bug]: Using axios or fetch in Angular is an antipattern

Open KonradLinkowski opened this issue 3 years ago • 1 comments

Link to the documentation page or resource

https://docs.strapi.io/developer-docs/latest/developer-resources/content-api/integrations/angular.html

Describe the bug

In the docs, you encourage users to use axios or fetch in Angular which is not common practice and can be misleading to users.

Angular has a built-in HTTP client service that should be used to make HTTP requests. It works much better with rxjs and can be intercepted, piped, and transformed.

Additional context

The path to the code: documentation/docs/developer-docs/latest/developer-resources/content-api/integrations/angular.md if somebody would search for that.

Suggested improvements or fixes

Using built-in HTTP client.

Related issue(s)/PR(s)

No response

KonradLinkowski avatar Dec 23 '21 08:12 KonradLinkowski

Thank you for opening this issue @KonradLinkowski , and apologies for the late reply.

You probably are more experienced with Angular than I am 😅 Would you like to update that documentation yourself? Community contributions to the Strapi documentation are always welcome.

Feel free to use the various contribution resources below:

Thank you!

pwizla avatar Jun 03 '22 08:06 pwizla

Closing this issue as it was fixed by user @sengokyu in PR #1628. Thank you very much! 🥳

pwizla avatar Mar 29 '23 09:03 pwizla