Directive that improves image loading performance by enforcing best practices.
class NgOptimizedImage implements OnInit ,OnChanges ,OnDestroy { @Input() ngSrc: string; @Input() ngSrcset: string; @Input() sizes?: string; @Input() width: number; @Input() height: number; @Input() loading?: "auto" | "lazy" | "eager"; @Input() priority: boolean; @Input() loaderParams?: { [key: string]: any; }; @Input() disableOptimizedSrcset: boolean; @Input() fill: boolean; @Input() placeholder?: string | boolean; @Input() placeholderConfig?: ImagePlaceholderConfig;}