General Architecture Ionic


I’m new to ionic and i want to start with a good practice architecture.
I come from .net world so for me the architecture is mvc.
I want to build an application with some objects like “user”, “pictures”…

for me i should have :
UserService -> method to manipulate user object
User -> store name, email etc
Data layer with access to the DB (Firebase)

so what is the correct way to do this in ionic ? use providers ?

Thanks a lot !

If you are new, focus on getting it working first before you get it right. You will see which architecture makes sense when your pages are getting too big or you have to duplicate code.

In general: providers are used for lots of stuff in Ionic :wink:

1 Like

Ok thanks i will do that :wink: