Skip to content

Instantly share code, notes, and snippets.

@jpwesselink
Forked from KrekkieD/scratch
Last active August 29, 2015 14:10
Show Gist options
  • Save jpwesselink/8b1723bff8c725ab401c to your computer and use it in GitHub Desktop.
Save jpwesselink/8b1723bff8c725ab401c to your computer and use it in GitHub Desktop.
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