top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is difference between *ngIf vs ngSwitchCase in Angular (2/4/5)?

0 votes
612 views
What is difference between *ngIf vs ngSwitchCase in Angular (2/4/5)?
posted Jan 26, 2018 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

NgSwitch stamps out nested views when their match expression value matches the value of the switch expression.

ngIf evaluates the expression and then renders the then or else template in its place when expression is truthy or falsy respectively.

answer May 20, 2018 by Chahat Sharma
...