3 ms·
I've been doing something similar to this with Backbone. Backbone has Models, Views, and Events. I put the "Operations" in the Model and Collection extended cla
by etler 13y ago
I've been doing something similar to this with Backbone. Backbone has Models, Views, and Events. I put the "Operations" in the Model and Collection extended classes, so the login operation is performed by the User model. So I would call something like currentUser.login(credentials).