Closed williamjuan027 closed 1 year ago
When using ImageCacheIt in template, you could pass in a http header via the headers property (as specified in the docs), like this:
ImageCacheIt
headers
<ImageCacheIt [headers]="headers" [src]="imageUrl"></ImageCacheIt>
Would it be possible to also pass in the headers property when using the getItem method to load images that require a header?
getItem
Perhaps something like this?
ImageCacheIt.getItem(imageUrl, { headers: headers });
Yes this should be possible with a little change
When using
ImageCacheIt
in template, you could pass in a http header via theheaders
property (as specified in the docs), like this:Would it be possible to also pass in the
headers
property when using thegetItem
method to load images that require a header?Perhaps something like this?