ngstyle in angular 4 code example Example: ngStyle [ngStyle]="{'background-image': 'url(' + data.headerImage + ')'}"