jrabary
jrabary

Reputation: 2441

Ember statemanager vs sproutcore-statechart in emberjs add-ons

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 ?

Upvotes: 3

Views: 540

Answers (2)

occam
occam

Reputation: 357

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!

Upvotes: 4

Peter Wagenet
Peter Wagenet

Reputation: 5056

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.

Upvotes: 5

Related Questions