As you can see, when user open the form, he got an image null until he captures an image with the camera. How to hide default NULL icons? Report form with ionic camera native
Asked
Active
Viewed 97 times
0
-
Possible duplicate of [jQuery/JavaScript to replace broken images](https://stackoverflow.com/questions/92720/jquery-javascript-to-replace-broken-images) – Tomas Vancoillie Sep 24 '19 at 06:40
1 Answers
1
Try this,
<img [src]="imgSrc" id="imgPlacement" ngShow="imgSrc !== undefined">

Dixit Savaliya
- 413
- 3
- 7
-
It works, but I've been used it with *ngIf, because I'm not using angularJS. :) – Pero Peric Sep 24 '19 at 07:30