samedi 31 janvier 2015

Bind css class to the current uiRouter state


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

4lex1v

10.2k






Bind css class to the current uiRouter state

Aucun commentaire:

Enregistrer un commentaire