How to use ngIf and ngFor in Angular

Опубликовано: 03 Октябрь 2024
на канале: Code With Bubb
619
25

In this video we'll take a look at how to use ngIf and Ngfor in Angular.

00:00 Intro
00:15 What is ngIf in Angular?
02:46 What is ngFor in Angular

In this Angular tutorial I'll take you through the basics of what ngIf does in Angular and also what ngFor does in Angular.

You'll probably guess from the names that you can use these 'structural directives' in your templates to conditionally render things in your components and I'll take you through a few examples of these in the video.