I'm trying to show an uploaded image immedetialy after using input file upload in angular.
I was trying to get the url from the typescript file to show it like that in html file:
<img src={{url}}>
I'm having the file like that:
html:
<input type="file" (change)="onFileChanged($event)" >
ts:
onFileChanged(event) {
this.selectedFile = event.target.files[0]
console.log(this.selectedFile)
}
What do I do to get the image and show it immedetialey?