Looking for a way to style odd and even rows differently in my dynamically generated table using ngFor directive in angular2.
*ngIf="AreThereMyOldMessages"
*ngFor="let oldm of MyOldMessages;let i=index"
*ngIf="AreThereMyNewMessages"
*ngFor="let message of MyNewMessages;let i=index"
Despite setting up CSS to color alternate rows, all the rows are being displayed in the same color.
table tr:nth-child(odd) td