4 ms·
> model() takes streams of interactions, wires them up with data retrieval and mutation streams and returns these data-streams I think that's called a controll
by jobigoud 10y ago
> model() takes streams of interactions, wires them up with data retrieval and mutation streams and returns these data-streams
I think that's called a controller or presenter in other patterns.
Actually your view and intent also do what a controller would do. The DOM is your actual view, and your data your actual model.
- k__ 10y agoYou're right, the names are badly choosen. In every function the same is happening, streams are created/wired up with other streams. The differentiation here seems to be, that the Model function just wires up streams for the data, the View function just wires up streams for the display and the Intent function just wires up streams for the interactions.