I am new to angular. I used pipe to format date. I used following but, didn't work.
<tr *ngFor="let item of items; index as i" [attr.data-rel]="'sometext-' + item.startTime | dateFormat ">
If i remove either 'timeslot-' + or | dateFormat it works but, with string concatenation it doesn't work.
Following works.
<tr *ngFor="let item of items; index as i" [attr.data-rel]="'sometext-' + item.startTime">
Or
<tr *ngFor="let item of items; index as i" [attr.data-rel]="item.startTime | dateFormat ">
someText-dateformatted<tr *ngFor="let item of items; index as i" [attr.data-rel]="'sometext-' + (item.startTime | dateFormat )">(item.startTime | dateFormat )between parenthesis