Ionic openweathermap api call


#1

Im creating my first app in ionic 2, I am making a call to the api and that is working fine. The thing I am struggling with is the javascript side. My app doesnt have a .js file/folder so I am a little unsure in to where to put the javascript that handles the JSON from the API or if i create a javascript file then where do i call it from?


Adding a controller for bringing in the weather
#2

You should learn how to use Angular first: https://angular.io/tutorial


#3

Any feedback on the question?


#4

It looks like you don’t know how to code in Angular and how to write/use an Angular Service. So you should learn how to code with Angular and TypeScript first. That’s my feedback for you


#5

I have some javascript but I am unsure as in which file path to put it in to be able to use it


#6

Thanks for the tutorial its helped