I have a function carDateCalculator which returns true or false according to parameter it recieves.Here what I tried to change background but didnt work.I get template parse Error.If function returns true I'll change the background color as red otherwise nothing will happen
Here what I tried
<span [ngStyle]="{ carDateCalculator(car.Date) ? {'background-color': 'red'} }">