Created
May 24, 2013 09:55
-
-
Save nicolasblanco/5642505 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
| # Clean method in CS for AngularJS code that works well with JS-minifiers | |
| app_module = angular.module 'my_ng_app', [] # -> in the array list all app dependencies | |
| app_module.controller "MyCtrl", ["$scope", ($scope) -> | |
| # Here all the controller code | |
| ] | |
| # in html... <html ng-app="my_ng_app"> ... </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment