I have an array of objects where I am looping through to display data in the HTML using *ngFor
. Each object also contains 2 dates , start and end.
How can I perform a calculation of the difference and display it in months / years on each object that being looped ?
what is the best way in this case to achieve this ! thanx