Question from the Angular - Fundamentals test

Explain the difference between ngStyle and ngClass in Angular.

Medium

What is the difference between [ngStyle] and [ngClass]?

Author: LéoStatus: PublishedQuestion passed 124 times
Edit
1
Community Evaluations
developer avatar
No
26/06/2024
NW : [ngStyle] applies dynamic values directly to styles. [ngClass] applies CSS classes according to given conditions.