You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Javascript imports for Bacon.js, Bacon.UI.js, jQuery.js
Javascript stub embedded in the HTML file
Implementation of the username property
The required AJAX services are mocked for you using Mockjax, so you don't need any background server.
Guidelines / intro
I usually start by defining some streams, at this point as global/window
variables, so that I can debug them easier. I included a show function
in the stub, so that you can debug your streams easily like this:
username.onValue(show)
This would lead to all events appearing in the "username" stream to be
printed to the console.
Suggested steps
Disable button when username is empty (tips: usernameMissing property,
map, onValue)
Disable also if fullname if missing (tips: new properties,
Property.or)
Implement availability query (tips: map, ajax)
Disable button if username unavailable (tips: Property.or,
Property.not)
Show unavailability information (tips: onValue, "toggle")
What happens with empty username? How to fix? (tips: filter)
Show AJAX indicator when AJAX pending (tips: map, merge, toProperty)