-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display an image whose url requires authentication #112
Comments
Short anwser, NO. I would suggest u can attach the auth token in the image url and let your server to return the image if the auth is correct |
Use this component @component({ private src$ = new BehaviorSubject(this.attachment); constructor(private httpClient: HttpClient, private domSanitizer: DomSanitizer) {} ngOnInit(): void {} ngOnChanges(): void { dataUrl$ = this.src$.pipe(switchMap(attachment => this.loadImage(attachment))) private loadImage(attachment: Attachment): Observable {
} @ViewChildren('albumImages',{read: ElementRef}) albumImages!: QueryList open handler Works like charm |
Hi,
Is there a way to display images whose url requires authentication ? In a normal context I use a pipe to catch query and attach authentication token, but is there a way to do such thing with the current lib ?
Thanks !
The text was updated successfully, but these errors were encountered: