Ionic openweathermap api call

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?

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

1 Like

Any feedback on the question?

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

1 Like

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

Thanks for the tutorial its helped

1 Like