Check out example codes for "angular dynamic background image". It will help you in understanding the concepts better.

Code Example 1

<div [style.background-image]="'url(/img/' + item.img + ')'"
 	[style.width.px]="200" [style.height.px]="150p"></div>

Learn ReactJs, React Native from akashmittal.com