I have a RESTful server which have several images.
I am using below URL to get an user’s profile image.
https://example.com/users/jake/profile_image
My Typescript:
...
export class SomePage {
// this variable is binded to img tag in html
profile_image: string = 'https://example.com/users/jake/profile_image';
changeProfileImageInServer() {
// this method changes profile image in the server.
// But, the new image has the same URL.
}
}
The value of variable ‘profile_image’ doesn’t need to change because the new image in the server has the same URL. but I want to change image in html because the profile image has changed. What should I do from now?
Thanks in advance.