A

Admin • 832.27K Points
Coach

Q. How can you bind CSS classes conditionally in Angular?

  • (A) Using [class.className] binding
  • (B) Using ngClass directive
  • (C) Using [ngClass] directive with an object
  • (D) All of the above
  • Correct Answer - Option(D)
  • Views: 16
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

All these methods allow conditional CSS class binding in templates.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.