Hacker News new | ask | show | jobs
by pseudobry 4305 days ago
For those writing largish non-trivial apps its essential to separate concerns for maintainability and testability. Controllers and UI logic get separated from domain logic and your Model layer. $scope is no Model layer.
2 comments

Yet angular-data doesn't seem to deal with model layer per say, but rather synchronization issues between what's somehow in the scope and the web services. To me that seems to be handled quite well with services and maybe factories for wrapping json into custom model classes.

It seems more meant ot be used as a caching layer that would wrap you webservice access services.

I understand. It would be nice to see an example though.