AngularJS controller violation DRY
$inject and constructor both contain the objects which should be injected
by bjoerne
HTML
<div ng-controller="ExampleController">
Hello, {{name}}!
</div>
CoffeeScript
class @ExampleController
@$inject: ['$scope']
constructor: (myScope) ->
myScope.name = 'Superhero'
myApp = angular.module 'myApp',[]
angular.bootstrap document, ['myApp']