code: function(data) {
      var template = angular.isString(data) ? '<ng-include src="\''+data+'\'"></ng-include>' : $injector.invoke(data);
      return $q.when(template);
    }
docs: Get templates
  
  @param  {Mixed}   data Template data, String src to include or Function invocation
  @return {Promise}      A promise fulfilled when templates retireved