sproutcore / getting-started

sproutcore.com/getting-started
4 stars 3 forks source link

Routing -- Use SproutCore routing for #/, #/active, #/completed, and do required filtering and displays. #7

Open geojeff opened 11 years ago

dcporter commented 11 years ago

The app's existing statechart should be able to reflect the URL with a little tweaking... set representRoute to a valid route string (as documented in SC.routes). Then in the state implement both an enterState method, for normal state transitions, and an enterStateByRoute method, which gives you the parsed URL path instead of your context object, and lets you spin up the state differently (documented here).