Ionic g provider not generating properly


#1

Hi,

I am pretty new to ionic community.
I was going through this article http://blog.ionic.io/10-minutes-with-ionic-2-calling-an-api/

In this article it says to run this code ionic g provider PeopleService for generating @Injectable class called PeopleService in app/providers/people-service/people-service.ts

My question is, when I am running the above code in CLI, I am getting a single file people-service.ts under src/providers, it is not creating a folder people-service inside providers folder.

What could be wrong?

Please advise.
Thank you.


#2

Okay, got it, now ionic2 doesn’t create providers in app folder, instead in src folder.
reference: https://www.youtube.com/watch?v=ARkSm0KWHaE