← BYTES
AngularJS·Starter·Ref: 5.1.13

What does the ng-class directive do?

Have a question about this video? Mention reference 5.1.13 when you contact us.

a.It only applies inline styles, never CSS classes
b.It conditionally applies one or more CSS classes to an element based on an expression
c.It creates a new CSS class definition
d.It disables all CSS on an element
ng-class evaluates an expression (often an object mapping class names to boolean conditions) and adds or removes the corresponding CSS classes on the element as that expression's value changes.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES5113#AngularJS