Skip to content

Instantly share code, notes, and snippets.

@nicolasblanco
Created May 24, 2013 09:55
Show Gist options
  • Select an option

  • Save nicolasblanco/5642505 to your computer and use it in GitHub Desktop.

Select an option

Save nicolasblanco/5642505 to your computer and use it in GitHub Desktop.
# 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