code: function(resolve) {
      var resolvesPromises = {};
  
      angular.forEach(resolve, function(value, key) {
        var resolution = angular.isString(value) ? $injector.get(value) : $injector.invoke(value, null, null, key);
        resolvesPromises[key] = $q.when(resolution);
      });
  
      return $q.all(resolvesPromises);
    }
docs: Resolve
  
  @param  {Object}  resolve A hash Object of items to resolve
  @return {Promise}         A promise fulfilled when templates retireved