Can I reference an ID from local storage so that I can assign what image should appear? I have the list of images in the AngularJS app under assets/
folder. How can I get the ID of the current user and reference it so I have a dynamic image? If user changes, then also image changes?
TS
constructor() {
this.image1 = '../../assets/images/image1.png';
}
HTML
<img [src]="image1">