Skip to content

Instantly share code, notes, and snippets.

@PatrickJS
Created August 28, 2013 02:27
Show Gist options
  • Select an option

  • Save PatrickJS/6361481 to your computer and use it in GitHub Desktop.

Select an option

Save PatrickJS/6361481 to your computer and use it in GitHub Desktop.
Angular components wrapped in IIFE
do(module = angular.module('myApp')) ->
module.service 'myService', ($scope) ->
`
(function (module) {
return module.service('myService', function ($scope) {
// do something
});
}(angular.module('myApp')));
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment