HELP! For my own project


Hi… Well actually this is don’t have any correlation with codecademy exercise. This is my own project. So I want to build a simple local weather website using AngularJS. When tested in my own place, the code works. But when it will be tested by using IP Location the code does not work.
Can someone tells me what’s wrong with my code?
<Below this line, add a link to the EXACT exercise that you are stuck at.>
Here’s my code’s screenshot…

<In what way does your code behave incorrectly? Include ALL error messages.>

Thank you so much…:blush:

You might wanna add a catch block after each then block.

What is the data that you receive. Is it a single object with all the attributes you are specifying? Or multiple objects(you will need to loop).

In the firsts get request you are doing nothing with the response

Also it would be a great idea to create a separate service to handle all http calls to the endpoint API and then inject it into your controller.

The above suggestions/inquires are based on the assumption that this where the problem is indeed.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.