Created
September 12, 2012 12:10
-
-
Save hmaurer/3706207 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
angular.module('app.controllers', []) | |
Object.keys require('./src/controllers'), (name, controller) -> | |
angular.module('app.controllers').controller(name, controller) | |
angular.module('app.directives', []) | |
Object.keys require('./src/directives'), (name, directive) -> | |
angular.module('app.directives').directive(name, directive) | |
# REFACTOR | |
var app.controllers = angular.module('app.controllers', []) | |
Object.keys require('./src/controllers'), (name, controller) -> app.controllers.controller(name, controller) | |
var app.directives = angular.module('app.directives', []) | |
Object.keys require('./src/directives'), (name, directive) -> app.directives.directive(name, directive) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment