I’m a bit confused as to why my code isn’t working for the Weather App.
I understand the logic behind the code.
I’m a bit confused as to why my code isn’t working for the Weather App.
I understand the logic behind the code.
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) ...
Didn’t even know about the browser console…
Thanks a bunch
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.