I am building an app with Ionic 3, Angular 4 and Firebase and I am very much confused about data modeling. There are two ways.
- Create a model class, declare variables and methods.
- Create an Interface
I am not sure which approach should I take when.
An interface will be empty body but will allow optional variable but class will not.
I am just looking for a clear idea of data modeling.