3 ms·
> 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
by aartur 13y 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?
- lstamour 13y agoIt 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 http://msdn.microsoft.com/en-us/magazine/hh580734.aspx
- ebiester 13y agoThe client model does not have to be the server model, and it probably shouldn't.