code: 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;
          }
docs: Link an element with compiled configuration