An example, describing how the 'resolve' property in routeProvider can be used to resolve the service before instantiating Controller and Template.