Angular Single Class Binding

atlantisthief profile image André ・1 min read

For today, I learned that there is a thing called "Class Binding" in Angular that allows me to have CSS override the existing Styling based on conditions.

<div class="normal" [class.fullscreen]="isFullscreen">...</div>

My usecase is that a clicked div gets a different styling to highlight a selection!


markdown guide