Skip to content
Advertisement

How to print variable only once in ngFor?

and i need to print some “printDay” by condition only once, how can i do it?

JavaScript

enter image description here

Advertisement

Answer

If you want to print something only in the first child you can use first directive:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement