Skip to content

Instantly share code, notes, and snippets.

@tptodorov
Last active April 7, 2019 08:43
Show Gist options
  • Save tptodorov/208772faf0568bc44a1cee5830b4fc34 to your computer and use it in GitHub Desktop.
Save tptodorov/208772faf0568bc44a1cee5830b4fc34 to your computer and use it in GitHub Desktop.
Meal Story&
Meal Story&
Week Plan
Empty*
load -> Loading
Loading
failed -> Empty
finished -> Populated
Populated
add_recipe -> Saving
save -> Saving
Saving
finished -> Populated
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