Skip to content

Instantly share code, notes, and snippets.

@ahmednuaman
Created April 17, 2013 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmednuaman/5402549 to your computer and use it in GitHub Desktop.
Save ahmednuaman/5402549 to your computer and use it in GitHub Desktop.
AngularJS controller on RequireJS in CoffeeScript
define [
'config'
'angular'
], (cfg, A) ->
class AController
@$inject = ['$scope']
constructor: (@$scope) ->
app = A.module cfg.ngApp
app.controller 'AController', AController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment