JavaScript Icon

Cleaner class-based controllers for AngularJS

logged by @logbot 2014-04-29T13:03:54Z permalink #javascript

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