填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

ng.getHostElement

Retrieves the host element of a component or directive instance. The host element is the DOM element that matched the selector of the directive.

ng.getHostElement(componentOrDirective: {}): Element
      
      ng.getHostElement(componentOrDirective: {}): Element
    
参数
componentOrDirective {}

Component or directive instance for which the host element should be retrieved.

返回值

Element: Host element of the target.