HELP! For my own project


#1



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?

Here's my code's screenshot...

Thank you so much...:blush:


#2

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.


#3

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