I have a quick query :). I'm attempting to retrieve the image src from an async function, but so far, I haven't had much success. This is what I have:
<img [src]="getProductImage(articleNumber)"/>
and in my TypeScript file:
public async getProductImage(articleNumber:string): Promise<string> {
let result = await this._Service.product(articleNumber);
debugger;
return result.imageFullUrl
}
While debugging, I can see that result.imageFullUrl is populated, but after that my page freezes and becomes unresponsive. Any thoughts on what might be going wrong?