angular-route-resolve An example, describing how the 'resolve' property in routeProvider can be used to resolve the service before instantiating Controller and Template. Read post - http://www.sagarganatra.com/2014/06/angularjs-resolving-data-services.html