Injecting dependencies into AngularJS routeProvider's resolve

Now I'm not sayin' I wasted half of my Saturday to discover that you cannot inject dependencies into an AngularJS module's config function directly, but that you can, instead, inject dependencies into routeProvider's resolve within config.  But hypothetically speaking...completely hypothetically...if I did waste half my Saturday doing that, finding these two links 3 1/2 hours earlier would have been really really convenient...like...really.



Just sayin'

Billy McCafferty

Posted 09-28-2013 6:51 PM by Billy McCafferty

[Advertisement]

Comments

http://devtools.korzh.com/ wrote re: Injecting dependencies into AngularJS routeProvider's resolve
on 10-06-2013 5:08 AM

Thanks for the share.

high quality backlinks wrote re: Injecting dependencies into AngularJS routeProvider's resolve
on 07-18-2014 9:42 AM

l3EIDr Wow, great blog article.Much thanks again. Awesome.

Sinetheta wrote re: Injecting dependencies into AngularJS routeProvider's resolve
on 07-21-2014 12:54 PM

I'm confused, neither of these links appear to mention *how* to inject dependencies into a resolve.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)