Hey all,
in this blog I would mention some of the tricks and tips that would be beneficial to any angularjs developer.
problem : you want to apply inline style(color:black) to element(say div) based on some condition(say if a==0).
solution : <div ng-style="a==0 && {color:black}">
source : http://stackoverflow.com/questions/13813254/how-do-i-conditionally-apply-css-styles-in-angularjs
in this blog I would mention some of the tricks and tips that would be beneficial to any angularjs developer.
problem : you want to apply inline style(color:black) to element(say div) based on some condition(say if a==0).
solution : <div ng-style="a==0 && {color:black}">
source : http://stackoverflow.com/questions/13813254/how-do-i-conditionally-apply-css-styles-in-angularjs
No comments:
Post a Comment