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

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -