Weather App Help

Weather App Help
0.0 0

#1

I’m a bit confused as to why my code isn’t working for the Weather App.

I understand the logic behind the code.

https://codepen.io/gcmontilla/pen/rmyedY


#2

I’m not an Angular guy, but the first thing I’d do is take care of the errors in the browser console:

TypeError: weatherApi.location(...).success is not a function
    at new <anonymous> (pen.js:24)
    at Object.invoke (angular.js:4842) ...

and

TypeError: weatherApi.location(...).success is not a function
    at new <anonymous> (pen.js:24)
    at Object.invoke (angular.js:4842) ...
   

#3

Didn’t even know about the browser console…

Thanks a bunch


#4

No problem. Yeah, codepen has a console, but it isn’t as good. The browser has many, many tools to help you, especially Chrome. Really, check it out. There are many great videos on Chrome devtools on youtube to help you see what’s there.