3

There are some examples that showcase the use of statechart in an Ember based application :

http://www.thesoftwaresimpleton.com/blog/2012/02/28/statemachine/

https://github.com/DominikGuzei/ember-routing-statechart-example

What is the difference between sproutcore-statechart in emberjs-addons and the ember.statemanager in ember-states lib ? And if I'd like to use sproutcore-statechart with Emberjs, how can I set it up correctly ?

jrabary
  • 2,411
  • 1
  • 28
  • 50
  • I've just visited the emberjs website and find there some new about this. I think, what I need is just Ember.StateManager as described here : http://docs.emberjs.com/symbols/Ember.StateManager.html – jrabary Apr 16 '12 at 15:14

2 Answers2

5

Ember has a new States system written from scratch. However, some users from the SC2 days were relying on SproutCore's Statecharts, so the "sproutcore-statechart" system brings that in. It's pretty much just for legacy use. I recommend that new users just use the built-in Ember States.

Peter Wagenet
  • 4,976
  • 22
  • 26
4

Some great new docs in code comment (by trek) on StateManager were merged just two days ago:

https://github.com/emberjs/ember.js/blob/master/packages/ember-states/lib/state_manager.js

Enjoy!

occam
  • 357
  • 4
  • 8