Img src value in variable


#1

<img src="{{ userSpecificData.profilePic }}" id="pic"> in ts file I’ve assigned this.userSpecificData.profilePic = "assets/imgs/pp.jpeg"; by this image is not getting displayed. What’s wrong in my code?


#2

Try:
this.userSpecificData.profilePic = "../assets/imgs/pp.jpeg";