Angular Deck#22/282PrevNextQuestion 22 of 282Easy#angular#directivesWhat is the purpose of `*ngIf` directive?by TimmoOct 7, 20260 viewsHelpful0SharePractice with AIShow Answer (Space)Self-rating (1 / 2):Needs ReviewMasteredMastered & NextPrevShowAIMasteredNextPrevious (#21/282)What is the purpose of `*ngFor` directive?Next Question (#23/282)What happens if you use script tag inside template?Keyboard shortcuts: ← / → prev/next · Space toggle answer · 1 Mastered · 2 Needs Review.