Skip to content

Instantly share code, notes, and snippets.

@adebisi-fa
Last active April 21, 2019 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adebisi-fa/50c1fdb31a3ba8583384300d3bfc0eac to your computer and use it in GitHub Desktop.
Save adebisi-fa/50c1fdb31a3ba8583384300d3bfc0eac to your computer and use it in GitHub Desktop.
Service Center State Chart
Service Center State Chart
SELECT_STATE -> StateSelected
Init
SELECT_STATE -> StateSelected
StateSelected
LOAD_CONTACTS -> StateContactsLoaded
StateContactsLoaded
SELECT_LGA -> LGASelected
ADD_STATE_CONTACT -> StateContactAdded
LGASelected
LOAD_CONTACTS -> LGAContactsLoaded
LGAContactsLoaded
ADD_LGA_CONTACT -> LGAContactAdded
StateContactAdded
REFRESH -> StateContactsLoaded
LGAContactAdded
REFRESH -> LGAContactsLoaded
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