Skip to main content
6 events
when toggle format what by license comment
May 23, 2017 at 12:40 history edited CommunityBot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Dec 25, 2015 at 17:52 comment added jcarpenter2 IIFEs do let you control scope as you build complex objects. However, the constant I'm defining depends on a previously defined constant; I would still need a way to pass 'authLevel' into the anonymous function, something more like this: .constant('routes', (function (authLevel) {...})(?)); One might think I could say app.factory('routes', ['authLevel', function (authLevel) { ... }]), but dependencies defined using the factory method can't be used inside config.
Dec 24, 2015 at 15:34 comment added anon Welcome to Code Review! As far as I can tell, this is a pretty good first answer (it's even got a bibiography!)
Dec 24, 2015 at 11:15 review Late answers
Dec 24, 2015 at 14:33
Dec 24, 2015 at 11:02 review First posts
Dec 24, 2015 at 15:34
Dec 24, 2015 at 10:58 history answered CDMP CC BY-SA 3.0