I have an Angular Project and in one component i want to show data by calling a function to the corresponding component.ts.
For example (very simplified)
<div *ngFor="let article of article">
<h1>{{getTitle(article)}}</h1>
</div>
If i check a console.log in the getTitle function there are a lot of logs, thus the function gets triggerd due to angular events to rerender i would say.
Now i am thinking maybe it is not the best idea to do it in this way? Assumed lot of data in a ngfor loop are shown. What do you think?