function linkElement(compileData, options){
          angular.extend(compileData.locals, options);

          var element = compileData.link(options.scope);

          // Search for parent at insertion time, if not specified
          options.element = element;
          options.parent = findParent(element, options);
          if (options.themable) $mdTheming(element);

          return element;
        }
function linkElement(compileData, options){
          angular.extend(compileData.locals, options);

          var element = compileData.link(options.scope);

          // Search for parent at insertion time, if not specified
          options.element = element;
          options.parent = findParent(element, options);
          if (options.themable) $mdTheming(element);

          return element;
        }
function linkElement ( compileData , options ) { angular . extend ( compileData . locals , options ) ; var element = compileData . link ( options . scope ) ; // Search for parent at insertion time, if not specified options . element = element ; options . parent = findParent ( element , options ) ; if ( options . themable ) $mdTheming ( element ) ; return element ; }
Link an element with compiled configuration
Link an element with compiled configuration
Link the element to the parent element