Skip to content
Josh Duff edited this page Aug 30, 2017 · 12 revisions

Things I would like fixed in an eventual rewrite

  • all state structure passed in to state router once at construction - no addState method, no mutability
    • throw errors at construction-time if a state doesn't have a parent
    • no data property on states
  • ability to lazy-load templates and activation functions
  • more explicit transition hooks
  • route guards that fire when the user tries to navigate away from a state, and allow the code to stop the transition from happening
  • the ability to delegate to/call component methods instead of activate/guard/whatever methods passed in with the state object
  • server-side rendering: add optional "serverSideRender" function to renderer API

I'll add to this list as I think of stuff

Clone this wiki locally