Angular / Angular basics
Difference between ng-class and ng-style directives.
ng-style is used to interpolate javascript object into style attribute.
ng-style="{width: 10px}"
The above directive will be translated to style="width:10px".
ng-class directive translates your object into class attribute.
ng-class="{'highlight-class': isActive}"
The above template is translated to class="highlight-class" when isActive variable is true.
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
More Related questions...