Services or Providers nomenclature?


#1

I’m new to Ionic development, I noticed that we can create a “Provider” via CLI, but the examples I know in Angular use the nomenclature “Service”. My question is if I can have a structure using the “Service” nomenclature, from the manual creation of the folder, as in the image below or it is necessary to use the nomenclature “Provider” creating via CLI.


#2

It is not necessary to use the CLI generators at all, or emulate the folder layout structure or naming conventions that they like. The import paths in your code are all that matters, and as long as the files are where you say they are and contain the classes you say they do, everything should be fine.