ReadonlyaltAlt text forwarded to the native <img> element.
ReadonlyariaAccessible label forwarded to the native element as aria-label.
Falls back to alt when not provided.
ReadonlyheightExplicit height in pixels (sets host element height).
ReadonlysrcImage source URL.
ReadonlywidthExplicit width in pixels (sets host element width).
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
Lazy-loading image component.
The native
<img>element'ssrcis only set once the host element enters the viewport, powered byIntersectionObserver. Until then an optional placeholder (CSS shimmer) is shown.Example