Ionic Creator - can you use multiple providers


#1

I am very new to Ionic. I am using Ionic creator and I am trying to use two API’s in one app. The first one that is used in the first page works great. I added another service for the second API, and to make things more complicated the second API has multiple properties. So I have a list of current data, ytd data, last 10 items, and last 10 loads. Each one of these properties is used for a different page but are all included in the same API. I can call that API, but for the current data page it is returning data 4 times. I don’t know how to get it to return the properties further down in the API at all. Does anyone have any experience with these scenarios?


#2

Hi, can you expecting like that to call the provider in ionic

https://ionicblog.quora.com/Http-services-with-promises-call-both-ionic-angular-5-angualr-cli


#3

Can you do that in ionic creator? I will try it to see if I can get it to work.


#4

Yes, I used that code for ionic app