I have image directive,when user add an image its gets added in dictionary and when its click on save button image gets save into the database.
I am facing issue in below scenario,
when user save blank image into the database and on edit its adding a new image and instead of save its refresh the browser but as image is present in dictionary its displaying from dictionary. Ideally it should show blank image as image is not saved in database yet by user.
to resolve above issue,
Need to set a flag, when user click on refresh and again set it once the page load is complete in Angular JS 1.3