Skip to content

Instantly share code, notes, and snippets.

@dangh
Last active August 24, 2018 07:11
Show Gist options
  • Save dangh/4ceb7a2ff603c98d0858f1bd4dc2c79a to your computer and use it in GitHub Desktop.
Save dangh/4ceb7a2ff603c98d0858f1bd4dc2c79a to your computer and use it in GitHub Desktop.
channel spectrum
channel spectrum
ready
SELECT_AP -> ready
SCAN -> loading
loading
CANCEL_SCAN -> ready
SCAN_SUCCESS -> chart
SCAN_FAILURE -> error
chart
SELECT_AP -> ready
SCAN -> loading
error
SELECT_AP -> ready
SCAN -> loading
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment