Direction: Choose the correct option
Q1.
What does `*ngIf='condition'` do?
Direction: Choose the correct option
Q2.
How do you provide an else template with `*ngIf`?
Direction: Choose the correct option
Q3.
What is the difference between `*ngIf` and `[hidden]`?
Direction: Choose the correct option
Q4.
Can you use `*ngIf` with asynchronous data?
Direction: Choose the correct option
Q5.
What does `*ngIf='user$ | async as user'` do?
Direction: Choose the correct option
Q6.
What is the purpose of the `then` clause in `*ngIf`?
Direction: Choose the correct option
Q7.
What is `` used for?
Direction: Choose the correct option
Q8.
What happens if the condition in `*ngIf` is initially false?
Direction: Choose the correct option
Q9.
Can you use `*ngIf` with `ngSwitch`?
Direction: Choose the correct option
Q10.
What is the `ngIf` directive's impact on performance?
