What is the difference between [ngStyle] and [ngClass]?
[ngStyle] applies dynamic values directly to styles.
[ngClass] applies CSS classes according to given conditions.
[ngStyle] applies styles according to given conditions.
[ngClass] applies CSS classes that take their names from dynamic values.
[ngStyle] applies styles to elements selected by a given method.
[ngClass] applies CSS classes selected by a given method.
[ngStyle] adds styles to a given CSS class.
Then [ngClass] adds this CSS class according to a given condition.