Skip to content

Instantly share code, notes, and snippets.

@tlvince
Created March 27, 2014 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlvince/9821721 to your computer and use it in GitHub Desktop.
Save tlvince/9821721 to your computer and use it in GitHub Desktop.
// http://stackoverflow.com/questions/283465/where-to-wrap-a-line-of-code-especially-long-argument-lists
angular.module('mymodule')
.controller('howlongsapieceofstringCtrl', function(arg1, arg2, arg3, arg4, arg5, arg6) {
return;
})
.controller('linebylineCtrl', function(
arg1,
arg2,
arg3,
arg4,
arg5,
arg6
) {
return;
});
@jofomah
Copy link

jofomah commented Mar 28, 2014

@tom, i think i prefer controller('linebylineCtrl', function(
arg1,
arg2,
arg3,
arg4,
arg5,
arg6
) {
return;
});

that way you can easily see everything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment