angular pass image url to css background code example
Example 1: angular dynamic background image
<div [style.background-image]="'url(/img/' + item.img + ')'"
[style.width.px]="200" [style.height.px]="150p"></div>
Example 2: angular background image
[style.backgroundImage]="'url('+ imagSource +')'"