Skip to content Skip to sidebar Skip to footer

How To Change Take Photo Text To Retake Photo Text When There Is Image

I am working on one camera app. There is one button called Take Photo where user can take photo and it will show in below of that button. What i need is. Once i took picture n=and

Solution 1:

You can use ng-show or ng-if for this

<button class="button button-energized" ng-click="getPhoto()"><span ng-if="!lastPhoto ">Take Photos</span><span ng-if="lastPhoto">Retake Photo</span></button>

Post a Comment for "How To Change Take Photo Text To Retake Photo Text When There Is Image"