angular-img-http-src
v1.0.1
Published
Use $http service to fetch img src as objectURL
Downloads
966
Readme
angular-img-http-src
Status: Go horse.
Problem
You used token based auth and you need to serve images from secured routes.
Solution
Use http-src
instead of ng-src
and it will fetch images using the $http
service - meaning Authorization headers added via interceptors will be present - then build a Blob
and set the src
to an objectURL.