Skip to content

DallanQ/angular-famous

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Running the examples

  • run bower install
  • start a webserver (e.g., python -m SimpleHTTPServer 9000)
  • point your browser to http://localhost:9000/examples

Comparison with famous-angular

famous-angular is a great project. The following comparison is from my point of view.

Pro's

  • 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

Con's

  • 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)

Equal

  • Both support angular's two-way data binding
  • Both can hook into angular's animation framework

About

simpler approach to integrate angular and famous

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published