An alternate approach to integrating Famo.us and AngularJS. This approach requires you to write a bit more code than famous-angular, but the library is simpler. Each of the famous-angular examples (except the two that don't appear to be working) has been re-implemented here so you can compare the two approaches.
- run
bower install
- start a webserver (e.g.,
python -m SimpleHTTPServer 9000
) - point your browser to
http://localhost:9000/examples
famous-angular is a great project. The following comparison is from my point of view.
- Straightforward, thin layer between famous and angular; easy to understand; easier to debug app code
- Less code; easy to keep up to date; less chance for bugs
- Tries to use standard angular practices
- DOM ends up looking as it would if you wrote vanilla famous code; no extraneous divs
- Code ends up looking more like vanilla famous code examples; only a few additional concepts to learn
- Famous components are injectable for mocking during unit tests
- Can't wire components together declaratively in HTML (wiring up event handlers happens procedurally as in vanilla famous; declarative event handling could be added but is not required)
- Famous-angular's fa-animation functionality is amazing; I have nothing like it (it should be considered for famous core)
- I'm only implementing the functionality I need (I'd be interested in adding more if others wanted to help)
- Both support angular's two-way data binding
- Both can hook into angular's animation framework