Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 缩略图不会显示在移动设备上_Angular_Ionic2 - Fatal编程技术网

Angular 缩略图不会显示在移动设备上

Angular 缩略图不会显示在移动设备上,angular,ionic2,Angular,Ionic2,我的代码: `<ion-item *ngFor="let data of datas | async" class="pqr"> <ion-thumbnail item-left> <img src="../assets/image/{{data.imageName}}"> </ion-thumbnail> {{data.Comp}}<br>

我的代码:

`<ion-item *ngFor="let data of datas | async" class="pqr">
          <ion-thumbnail item-left>
            <img src="../assets/image/{{data.imageName}}">
          </ion-thumbnail>
          {{data.Comp}}<br> 
          {{data.Demand}}<br>
          <p> {{data.Desig}}<br></p>
          {{data.Place}}<br>
           {{data.when}}<br>
        </ion-item>`
`
{{data.Comp}}
{{data.Demand}}
{{data.Desig}}

{{data.Place}}
{{data.when}}
`
请告诉我是否需要添加其他输入。

根据本文档

将www/assets移动到src/assets

将www/img移到src/assets/img

修复应用程序中图像的所有路径。例如,在路径 看起来像现在应该是


您的路径应该是
assets/。

使用
src=“assets/。”
代替,没有
。/
谢谢,@devqon无法对您的答案进行投票。