This visual execution shows how Angular's ngClass directive dynamically adds or removes CSS classes based on component variables. The example toggles the isActive boolean. When true, 'active-class' is added; when false, 'inactive-class' is added instead. The execution table tracks each step's isActive value, the ngClass expression evaluation, which classes are added or removed, and the resulting style on the div. The variable tracker shows how isActive changes over time. Key moments clarify why classes switch and what happens if conditions overlap. The quiz tests understanding of class changes and variable states. This helps beginners see how ngClass controls styling reactively and visually.