Check Image Empty

I have an ionic apps which will show the image in a post, which i want to check whether it has data in it or not.

   <img class="full-image" data-ng-src="data:image/jpeg;base64,{{x.imagepath}}">

So what i mean is something like

if {{x.imagepath}} not empty {
    <img class="full-image" data-ng-src="data:image/jpeg;base64,{{x.imagepath}}">
}

How to achieve this thing in my html file of the ionic apps.

if you only want to check if x.imagepath is set you could use the ternary operator

<img class="full-image" ng-src="{{x.imagepath ? 'data:image/jpeg;base64,' + x.imagepath : FALLBACK}}">

@bengtler

Thank you master, its work.