3 ms·
Does this boil down to: 1) The DOM is the model. JS reads elements and data attributes and builds a model from them. Then updates the model when the DOM change
by SolarUpNote 13y ago
Does this boil down to:
1) The DOM is the model. JS reads elements and data attributes and builds a model from them. Then updates the model when the DOM changes. (Angular)
2) The model is loaded from JSON. Then the App builds the DOM based on the model. (Ember)
So is the question: Does it start with the DOM, or start with javascript objects?
Am I understanding this debate correctly?
- erikpukinskis 13y agoI don't think that's the major distinction. Both store models in javascript. Some of the big things being debated are the use of getters/setters and the data lifecycle that happens when you change routes.