Within my Angular 4 application, I have defined styles as shown below:
[ngStyle]="{'border': getInterleaveColor(i)}"
The following function is also included:
getInterleaveColor(auditNumber) {
var borderProperties = '2px solid';
if (auditNumber % 2 == 0)
return borderProperties + '#0078D2';
else
return borderProperties + '#00B989';
}
This setup works perfectly in Chrome, however, it encounters issues when used in Internet Explorer.