<div [ngClass]="isSpecial ? 'special-class' : 'normal-class'">Dynamic Class Example</div>
<p [ngStyle]="{'font-size': isLargeFont ? '20px' : '14px', 'color': textColor}">Dynamic Styling</p>
<input [(ngModel)]="username" placeholder="Enter your name">
<div *ngIf="showElement">This div will only appear if showElement is true</div>
<ul>
<li *ngFor="let item of items">{{ item.name }}</li>
</ul>
<div [ngSwitch]="choice">
<p *ngSwitchCase="'A'">Option A is selected</p>
<p *ngSwitchCase="'B'">Option B is selected</p>
<p *ngSwitchDefault>Default option</p>
</div>
<div [ngSwitch]="selectedOption">
<p *ngSwitchCase="'red'">Red option selected</p>
<p *ngSwitchCase="'blue'">Blue option selected</p>
</div>
<div [ngSwitch]="selectedOption">
<p *ngSwitchCase="'red'">Red option selected</p>
<p *ngSwitchDefault>Default option selected</p>
</div>