Skip to content

Instantly share code, notes, and snippets.

@valscion
Created September 10, 2018 08:56
Show Gist options
  • Save valscion/d78730ae2a1f6925edbb27f94392f1f8 to your computer and use it in GitHub Desktop.
Save valscion/d78730ae2a1f6925edbb27f94392f1f8 to your computer and use it in GitHub Desktop.
Ilmoita muu tilanne
Ilmoita muu tilanne
Start*
option1 -> Saving
option2 -> Saving
option3 -> Saving
option4 -> Muu tilanne
Saving
success -> Success
failure -> Failed
Failed
retry -> Start
Success
Muu tilanne
StartOther*
option1 -> SavingOther
backToStart -> Ilmoita muu tilanne
SavingOther
success -> SuccessOther
failure -> FailedOther
FailedOther
SuccessOther
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