13 ms·
This is how both Vue and Angular work. You have a “data” as a model sitting between the DOM and the controller (mainly methods and watchers). There are some gr
by Too 5y ago
This is how both Vue and Angular work.
You have a “data” as a model sitting between the DOM and the controller (mainly methods and watchers). There are some gray lines, like computed properties, but otherwise the controller can run without the DOM and vice versa, you can easily force the model into a state to see how the view will look like.
A lot more testable than the old spaghetti of onClick and getElementById().addEventListener.