I am displaying a grid of employees as below
<ion-row *ngFor="let employee of employees; let i = index ">
I am calculating the total salary using a custom pipe as per below:
<div class="tot-salary">
Total Salary: {{employees | returntotal: 'sal' | number:'.2-2'}}
</div>
When component variable 'employees' is updated with a new employee, a new row is created for the employee but the total salary is not updated. It seems it is not detecting any change in employees for the total salary.
Thanks for helping.
Ashley