# Do not apply active state on "item" class from the latest alpha ? It breaks my code :(

**URL:** <https://forum.ionicframework.com/t/do-not-apply-active-state-on-item-class-from-the-latest-alpha-it-breaks-my-code/1977>\
**Category:** ionic-v1\
**Created:** [March 18, 2014, 11:54am UTC](https://forum.ionicframework.com/t/do-not-apply-active-state-on-item-class-from-the-latest-alpha-it-breaks-my-code/1977 "2014-03-18T11:54:16Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![rdtran](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@rdtran](https://forum.ionicframework.com/u/rdtran)\
**Post date:** [March 18, 2014, 8:27pm UTC](https://forum.ionicframework.com/t/do-not-apply-active-state-on-item-class-from-the-latest-alpha-it-breaks-my-code/1977/6 "2014-03-18T20:27:04Z")

</div>

i wanted to apply the active link with color. he recommends this. has anyone try this? I can’t get it to work.

> [@v0.9.27 Alpha Salamander released - Last before beta!](http://forum.ionicframework.com/t/v0-9-27-alpha-salamander-released-last-before-beta/1887/12):
>
> Have you tried using ng-class? \<ion-item ng-class="{active: currentState() == 'login'\> function Ctrl($scope, $state) { $scope.currentState = function() { return $state.current; }; }

---

_[View the full topic](https://forum.ionicframework.com/t/do-not-apply-active-state-on-item-class-from-the-latest-alpha-it-breaks-my-code/1977)._
