Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Advice generator with Angular/rxjs

Arnold 300

@bsarnii

Desktop design screenshot for the Advice generator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


I chose this challenge to refresh my knowledge about Angular http request. When I thought that I finished, I realised that the browser is cacheing the requests and after clicking on the button, the values are not changing. So i made a different approach.Instead of getting a random quote from the server, I'm making a random index number on the client side and making a request with the random number. With this approach, the request url is always changing and the browser will not cache the value.

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord