Structural Directives
Structural Directives ~20 mins
Task 1: *ngIf - Directives
   <a class="nav-link" routerLink="viewBalance"> View Balance </a>
Task 2: Component TS file and Template HTML file
    isLoggedIn =  localStorage.getItem("LOGGED_IN_USER") != null ? true: false;
Task 2.1: Hide Element ( Approach -1 )
    <a routerLink="viewBalance" [class.hidden]="!isLoggedIn"> View Balance </a>
   <a routerLink="viewBalance" *ngIf="isLoggedIn"> View Balance </a>
Differences between Hide and NgIf
Task : Iterate array and display
    departments = ["CSE","IT","EEE"];
    <div *ngFor="let dept of departments">{{dept}}</div>
Task : Iterate with index
    <div *ngFor="let dept of departments;let i=index">    
{{i+1}} - {{dept}}
</div>
Task : Switch Case
    <div [ngSwitch]="currentItem.feature">
<app-stout-item *ngSwitchCase="'stout'" [item]="currentItem"></app-stout-item>
<app-device-item *ngSwitchCase="'slim'" [item]="currentItem"></app-device-item>
<app-lost-item *ngSwitchCase="'vintage'" [item]="currentItem"></app-lost-item>
<app-best-item *ngSwitchCase="'bright'" [item]="currentItem"></app-best-item>
<!-- . . . -->
<app-unknown-item *ngSwitchDefault [item]="currentItem"></app-unknown-item>
</div>