Cleaner class-based controllers for AngularJS

Jerod Santo Jerod Santo

Classy is Dave Jeffery's attempt to clean up AngularJS controllers. It removes the requirement to annotate your dependencies, automatically adds functions to the controller's $scope, and adds a convenient way of watching things without dirtying up your init function.

Also, the project's homepage has a really nice code sample that switches between JavaScript and CoffeeScript versions. Check it.

0:00 / 0:00