0

I need to add a background image in a span tag. The name of image is coming from Database. The code I had written is :

<span *ngIf="isSa === false" style ="background:url(assets/images/profile/{{emp_image}} ) no-repeat center"> </span>

The variable 'emp_image' is having a value '1.png' and it is getting if i am printing it outside the style.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.