Problems encountered in ngFor in angular4

the following code is available:

Component

   

The

page is displayed as expected, but not in the console, that is, the ngFor in the template is called four times!

what is the reason for this? Or can this be avoided?

Mar.13,2021

it is not recommended to call the function directly on the template, and change detection is performed each time.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4ba56-44e5d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4ba56-44e5d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?