Skip to content

v4.4.0

Latest
Compare
Choose a tag to compare
@EverettSummer EverettSummer released this 06 Oct 14:45

Add configurable src generator interface: IResponsiveGenerateSrc

There are two built-in generator service: default one: ResponsiveGenerateSrcService and the round size RoundGenerateSrcService that has less image size variation which will reduce the image numbers in cache.

to use ResponsiveImage module, you need to add a provider for token: SRC_GENERATOR_SERVICE
For example, if you want to use the default service:
{provide: SRC_GENERATOR_SERVICE, useClass: ResponsiveGenerateSrcService}