Vote count:
0
I know about existing ui-sref-active
directive, but in my case i'm changing state internally using $state.go("")
, so this directive won't work for my. I've also tried to write it as ng-class="{active: vm.isOpened()}"
, but it throws TypeError: boolean is not a function
. Any other ways to do this?
asked 1 min ago
Bind css class to the current uiRouter state
Aucun commentaire:
Enregistrer un commentaire