Spec-Zone.ru › Angular

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.

API

function getHostElement(componentOrDirective: {}): Element;
@paramcomponentOrDirective{}

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

@returnsElement

Host element of the target.

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/globals/getHostElement

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API