jpilfold / ngx-image-viewer

An image viewer component for Angular 2+
MIT License
49 stars 54 forks source link

Allow Safeurls type for image src #27

Open alexraju91 opened 5 years ago

alexraju91 commented 5 years ago

I'm generating safe urls from image blobs. This cannot be passed as src parameter currently.

alexraju91 commented 5 years ago

Only change required here is

import {SafeUrl} from '@angular/platform-browser';
export declare class ImageViewerComponent implements OnInit {
    moduleConfig: ImageViewerConfig;
    src: string[]|SafeUrl[];