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 - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -