@angular/common

ImageConfig

Type Alias

A configuration object for the image-related options. Contains:

  • breakpoints: An array of integer breakpoints used to generate srcsets for responsive images.
  • disableImageSizeWarning: A boolean value. Setting this to true will disable console warnings about oversized images.
  • disableImageLazyLoadWarning: A boolean value. Setting this to true will disable console warnings about LCP images configured with loading="lazy". Learn more about the responsive image configuration in the NgOptimizedImage guide. Learn more about image warning options in the related error page.

  
    type ImageConfig = {  breakpoints?: number[];  placeholderResolution?: number;  disableImageSizeWarning?: boolean;  disableImageLazyLoadWarning?: boolean;}
  
  
Jump to details