A simple finite state machine for Angular supporting String and Object states with both callback and event support.