code: function compileElement(options) {
  
            var compiled = !options.skipCompile ? $mdCompiler.compile(options) : null;
  
            return compiled || $q(function (resolve) {
                resolve({
                  locals: {},
                  link: function () {
                    return options.element;
                  }
                });
              });
          }
docs: Compile an element with a templateUrl, controller, and locals