-
Notifications
You must be signed in to change notification settings - Fork 212
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 [Bug]: #270
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
[email protected]
Angular Version
Angular: 12.2.16
Link to minimal reproduction
component.html
<d-avatar [imgSrc]="headerImg">
component.ts
headerImg;
ngOnInit(): void {
this._http.post(_api, {
keyID: 2,
}, {
responseType: 'blob',
}).subscribe((data) => {
// const _blob = this._sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(data));
const _src = URL.createObjectURL(data);
this.headerImg = _src;
});
}
the headerImg cannot be displayed normally in d-avatar
Step to reproduce
component.html
<d-avatar [imgSrc]="headerImg">
component.ts
headerImg;
ngOnInit(): void {
this._http.post(_api, {
keyID: 2,
}, {
responseType: 'blob',
}).subscribe((data) => {
// const _blob = this._sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(data));
const _src = URL.createObjectURL(data);
this.headerImg = _src;
});
}
the headerImg cannot be displayed normally in d-avatar
What is expected
No response
What is actually happening
No response
Any additional comments (optional)
No response
The text was updated successfully, but these errors were encountered: