Hacker News new | ask | show | jobs
by aartur 4731 days ago
> Angular is also in fact completely agnostic about your model. You can plug in any kind of model as long as you can parse it in javascript.

Why Angular has to know my model? I can make it decoupled from other parts of my code by using standard programming techniques available for many years (modularity, layers etc.).

Maybe the problem is that Angular actually implements design patterns as code, and it should be just knowledge?

2 comments

It might be easier to conceptually think of these view-binding models as "View Models" or presenters. A longer article I plan to read on the subject is http://msdn.microsoft.com/en-us/magazine/hh580734.aspx
The client model does not have to be the server model, and it probably shouldn't.