This happens in all versions of Ionic, and probably also in Angular, but can someone please explain why calling a function within an *ngFor loop calls the function many, many times more than expected i.e. once??
<div *ngFor="let section of pageSections"> <app-get-email *ngIf="section.type==email" [headertext]=getSignupHeader(section.pageContent)></app-get-email> </div> </div>
In this example there are only 5 pageSections, and only 1 section.type==email, yet the getSignupHeader() funtion is called more than 20 times!
Why is this??