'how to hide broken image icon but if url in src becomes correct show again in Vue.js

I'm making flask apps, the user has to enter the url of the image and it should show up when the url is correct, before that i just used @error, but when the url is correct, the image stays hidden.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source