code: function handleDemoTemplates() {
        return $q.all(files.html.map(function(file) {
  
          return file.contentsPromise.then(function(contents) {
            // Get the $templateCache instance that goes with the demo's specific ng-app.
            var demoTemplateCache = demoContainer.injector().get('$templateCache');
            demoTemplateCache.put(file.name, contents);
  
            scope.$on('$destroy', function() {
              demoTemplateCache.remove(file.name);
            });
  
          });
  
        }));
  
      }
docs: Fetch the templates for this demo, and put the templates into
  the demo app's templateCache, with a url that allows the demo apps
  to reference their templates local to the demo index file.
  
  For example, make it so the dialog demo can reference templateUrl
  'my-dialog.tmpl.html' instead of having to reference the url
  'generated/material.components.dialog/demo/demo1/my-dialog.tmpl.html'.