Angular 从api检索图像时如何以角度给出基本url
从数据库检索图像时如何获取api urlAngular 从api检索图像时如何以角度给出基本url,angular,Angular,从数据库检索图像时如何获取api url <table class="table"> <tr> <th>Id</th> <th>Image</th> </tr> <tr *ngFor="let image of images">
<table class="table">
<tr>
<th>Id</th>
<th>Image</th>
</tr>
<tr *ngFor="let image of images">
<td>{{image.id}}</td>
<td><img src="{{image.image}}"/></td>
</tr>
</table>
身份证件
形象
{{image.id}
你可以这样写
<table class="table">
<tr>
<th>Id</th>
<th>Image</th>
</tr>
<tr *ngFor="let image of images">
<td>{{image.id}}</td>
<td><img src="mypath/{{image.image}}"/></td>
</tr>
</table>
身份证件
形象
{{image.id}
谢谢