AngularJS ng-class not applying css styles -
i have company site developing angularjs , having troubles ng-class
here html:
<a href="timeentry.php" ng-class="{{(userrole.admin) ? '' : 'inactive'}}"> link </a>
css:
.inactive { pointer-events : none; cursor : default; }
chrome inspect element:
<a href="timeentry.php" ng-class="inactive"> link </a>
obviously have tested class="inactive"
, working should, chrome's view source appears showing me should working not being applied.
assuming userrole.admin boolean, should work
<a href="timeentry.php" ng-class="{ inactive: !userrole.admin }"> link </a>
Comments
Post a Comment