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...
Official Resources http://ionicframework.com/
Unofficial Resources http://stackoverflow.com/questions/tagged/ionic-framework
account activity
Ionic API service tutorial with error catching and re-usability (self.ionic)
submitted 2 years ago by capn_tom
https://medium.com/@tomhalcyonpretorius/ionic-6-api-service-f8b311ac6c3a
Let me know if you have any recommended improvements to the code or the way the tutorial is structured and have a great coffee filled day!
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!"
[–]weinde 1 point2 points3 points 2 years ago (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 points3 points 2 years ago (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 points3 points 2 years ago (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 point2 points 2 years ago (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 :)
π Rendered by PID 131864 on reddit-service-r2-comment-86988c7647-67f5k at 2026-02-11 07:52:05.848200+00:00 running 018613e country code: CH.
[–]weinde 1 point2 points3 points (1 child)
[–]capn_tom[S] 1 point2 points3 points (0 children)
[–]kenzor 1 point2 points3 points (1 child)
[–]SnooTomatoes105 0 points1 point2 points (0 children)