Can someone clarify the correct usage of events and commands with the following signup and login example?
A typical app my need functions to
- display the signup form
- execute the signup
- show a success page
and
- display the login form
- execute login
- handle successful login
How could this be mapped to Backbone/Marionette Events?
How could this be mapped to WreqR commands?
I'm struggeling with the naming of the events:
e.g. onShowSignUp
:
Isn't this an event that should be triggered AFTER the signup form is displayed? How should the event triggering the showSignUpForm
or the showLoginForm
function be called?