# Image displaying issue with ng-repeat

**URL:** <https://forum.ionicframework.com/t/image-displaying-issue-with-ng-repeat/3768>\
**Category:** ionic-v1\
**Created:** [May 5, 2014, 11:21am UTC](https://forum.ionicframework.com/t/image-displaying-issue-with-ng-repeat/3768 "2014-05-05T11:21:52Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![igghera](https://avatars.discourse-cdn.com/v4/letter/i/e0b2c6/32.png) [@igghera](https://forum.ionicframework.com/u/igghera)\
**Post date:** [July 19, 2014, 3:10am UTC](https://forum.ionicframework.com/t/image-displaying-issue-with-ng-repeat/3768/21 "2014-07-19T03:10:34Z")

</div>

SOLVED!

After trying to debug using ADT (Eclipse) I have found this guide

> **[Get Started with Remote Debugging Android Devices  |  Tools for Web Developers
 ...](https://developers.google.com/web/tools/chrome-devtools/remote-debugging/?utm_source=dcc&utm_medium=redirect&utm_campaign=2016q3)**
>
> Remote debug live content on an Android device from a Windows, Mac, or Linux computer.

and enabled debugging with Chrome web tools. So simple!  
You just configure your app to be debuggable by setting a flag in the AndroidManifest.xml file

```
android:debuggable="true"

```

then run your app (ionic run android) go to Chrome, navigate to `chrome://inspect` and select your webview in the list. Done! The issue was obviously stupid (a simple uppercase/lowercase mistake) that worked on desktop but not on devices. Thanks to Google Chrome we have a simple and powerful way to debug webviews embedded in native apps 🙂

Thanks for your support, really appreciated

---

<div class="post-metadata">

**Author:** ![ronyrun](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@ronyrun](https://forum.ionicframework.com/u/ronyrun)\
**Post date:** [November 10, 2014, 3:25pm UTC](https://forum.ionicframework.com/t/image-displaying-issue-with-ng-repeat/3768/22 "2014-11-10T15:25:33Z")

</div>

Hi,

I found that concerning the images : [http://stackoverflow.com/questions/22682770/unable-to-display-contact-photo-in-phonegap-through-angularjs?noredirect=1#comment38369074\_22682770](http://stackoverflow.com/questions/22682770/unable-to-display-contact-photo-in-phonegap-through-angularjs?noredirect=1#comment38369074_22682770)

```
 config(['$compileProvider', function($compileProvider) {
            $compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|blob|content):|data:image\//);
        }]);

```

^^

---

<div class="post-metadata">

**Author:** ![jcbaena](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jcbaena/32/94051_2.png) [@jcbaena](https://forum.ionicframework.com/u/jcbaena)\
**Post date:** [November 22, 2015, 9:05am UTC](https://forum.ionicframework.com/t/image-displaying-issue-with-ng-repeat/3768/23 "2015-11-22T09:05:02Z")

</div>

Hi,

i have the same problem. I have a ng-repeat inside other ng-repeat. I set ![]() and no images are showed in the browser (i’m develeping debbuging in the browser).

I have set:  
$compileProvider.imgSrcSanitizationWhitelist(‘img/’);

but, there is no images, no console errores, and nothing happens.

Code:  
template:

> ```
> <img ng-src="{{u}}" height="22">
> 
> ```

controller:

> $scope.u = function(){  
> return “img/image.gif”;  
> }

---

<div class="post-metadata">

**Author:** ![sanket2474](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sanket2474](https://forum.ionicframework.com/u/sanket2474)\
**Post date:** [February 20, 2017, 11:04am UTC](https://forum.ionicframework.com/t/image-displaying-issue-with-ng-repeat/3768/24 "2017-02-20T11:04:46Z")

</div>

I was facing the same problem.  
I simply used src insted of ng-src.  
Edit your line as  
`<img style="width: 100%" src='img/{{index.supportIndexDetailImg}}.png' >`

This worked for me.  
Images are visible in simulator as well as real device.

---

<div class="post-metadata">

**Author:** ![harry\_monu](https://avatars.discourse-cdn.com/v4/letter/h/e9a140/32.png) [@harry\_monu](https://forum.ionicframework.com/u/harry_monu)\
**Post date:** [February 21, 2017, 6:38am UTC](https://forum.ionicframework.com/t/image-displaying-issue-with-ng-repeat/3768/25 "2017-02-21T06:38:00Z")

</div>

how to display capture image via if i have a image path like that file:///data/data/com.ionicframework.camerapic585683/files/1487657147153.jpg

[Previous page](https://forum.ionicframework.com/t/image-displaying-issue-with-ng-repeat/3768.md?page=1)
