Ionic2 data manipulation best practices

I have APIs for my business logic, should I create model classes or interfaces, or I just manipulate my data as json objects ? PS: I have a NoSQL database (couchBase lite) to storage my data in local and gateway to synchronize with serve

I use interfaces. Classes are sort of unwieldy when you’re receiving JSON over the wire, and interfaces give you all the compile-time typo protection and self-documentation anyway.

1 Like