directive give green or red color to number code example Example: ngStyle [ngStyle]="{'background-image': 'url(' + data.headerImage + ')'}"