Kyle-Muir / angular-typescript-demo

AngularJS with TypeScript demo for FHF
0 stars 1 forks source link

The typescript module for domain objects should be 'Domain' and not 'Model' imo #1

Open jonocairns opened 9 years ago

Kyle-Muir commented 9 years ago

Depends on the level of seperation, Model tends to imply it's used on the view I guess in terms of MVC patterns whereas Domain tends to imply it's only used in your business layer. My view in this particular instance was model would be similar to a DTO server side and domain would be similar to core business logic.

I'm happy with either to be honest. Seeing as it's a trivial example with very few layers I didn't put too much thought into it.