Skip to content

Instantly share code, notes, and snippets.

@spion
Last active December 16, 2015 15:09
Show Gist options
  • Save spion/5453811 to your computer and use it in GitHub Desktop.
Save spion/5453811 to your computer and use it in GitHub Desktop.
Angular injection madness
[
'blah',
'stuff',
'meh',
'thingy',
'one',
'another',
'something',
'otherthing',
'yetanother',
'morestuff',
function (
blah,
stuff,
meh,
thingy,
another,
something,
otherthing,
yetanother,
morestuff) {...
}
]
[$injector, function($i) {
var blah = $i.get('blah'),
stuff = $i.get('stuff'),
meh = $i.get('meh'),
thingy = $i.get('thingy'),
one = $i.get('one'),
another = $i.get('another'),
something = $i.get('something'),
otherthing = $i.get('otherthing'),
yetanother = $i.get('yetanother'),
morestuff = $i.get('morestuff');
...
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment