Answers for "how to set background image dynamically in angular 6"

1

angular dynamic background image

<div [style.background-image]="'url(/img/' + item.img + ')'"
 	[style.width.px]="200" [style.height.px]="150p"></div>
Posted by: Guest on October-24-2020
1

how to put background image in angular 11

[style.backgroundImage]="'url('+ imagSource +')'"
Posted by: Guest on August-05-2020

Code answers related to "how to set background image dynamically in angular 6"

Browse Popular Code Answers by Language