below is my code to display images from database .
<div *ngfor='let pad of pictures' class="">
<img class="activator"src="imagepas/{{pad.picturefirst}}">
</div>
in database sometime there will not be image every time so i want to display a default image, image is for this case alone but there will situations when i want to do some conditional calculation before displaying data. i read about ngswitch but how can i put condition like pad.picturefirst==null its not working that way . please help