function compileElement(options) {

          var compiled = !options.skipCompile ? $mdCompiler.compile(options) : null;

          return compiled || $q(function (resolve) {
              resolve({
                locals: {},
                link: function () {
                  return options.element;
                }
              });
            });
        }
function compileElement(options) {

          var compiled = !options.skipCompile ? $mdCompiler.compile(options) : null;

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