Cleaner class-based controllers for AngularJS
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 watch
ing 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.
Discussion
Sign in or Join to comment or subscribe