Aspects


vs


Ng-class

The angularjs ngClass directive allows you to set CSS classes on an HTML element, dynamically, by databinding an expression that represents all classes to be added.

Ng-show

The ngShow directive shows or hides the given HTML element based on the expression provided to the ngShow attribute

Others

Quality Example
Better option

"Edit as mentioned by chandresh using the ng-show directive with a true false value would be a better option than using ng-class"

from question "HTML styling while Angular JS is loading"

Back to Home
Data comes from Stack Exchange with CC-BY-SA-3.0