Turn off animation, modal, angular-ui

Currently, the bootstrap classes are embedded in the directive and need to be overridden. If you want to prevent that vertical ‘drift’ into position of the modal window, place the following 2 classes in your css : .modal.fade { opacity: 1; } .modal.fade .modal-dialog, .modal.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); transform: translate(0, … Read more

How to detect current state within directive

Update: This answer was for a much older release of Ui-Router. For the more recent releases (0.2.5+), please use the helper directive ui-sref-active. Details here. Original Answer: Include the $state service in your controller. You can assign this service to a property on your scope. An example: $scope.$state = $state; Then to get the current … Read more