-
-
Save jpwesselink/8b1723bff8c725ab401c 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('foo') | |
.factory('kak', function kak() { | |
'use strict'; | |
/* ... */ | |
}); | |
// vs | |
(function () { | |
'use strict'; | |
angular.module('foo', []) | |
.factory('fooSearch', fooSearch); | |
function fooSearch(){ | |
/* ... */ | |
} | |
}()); | |
// vs | |
(function () { | |
'use strict'; | |
angular.module('foo', []) | |
.factory('fooSearch', function fooSearch(){ | |
/* ... */ | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment