code: function loadByHttpUrl(url) {
        return $q(function(resolve, reject) {
          // Catch HTTP or generic errors not related to incorrect icon IDs.
          var announceAndReject = function(err) {
              var msg = angular.isString(err) ? err : (err.message || err.data || err.statusText);
              $log.warn(msg);
              reject(err);
            },
            extractSvg = function(response) {
              if (!svgCache[url]) {
                svgCache[url] = angular.element('<div>').append(response)[0].querySelector('svg');
              }
              resolve(svgCache[url]);
            };
  
          $templateRequest(url, true).then(extractSvg, announceAndReject);
        });
      }
docs: /* Load the icon by URL using HTTP.