Created
April 17, 2013 08:02
-
-
Save ahmednuaman/5402549 to your computer and use it in GitHub Desktop.
AngularJS controller on RequireJS in CoffeeScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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