How to pass the $event to the onEnter function of angular ui router state
问题 I have a question, maybe a stupid one, I am using ui-router state to open a modal just like explained here, except the part the modal is not ui-bootstrap's it is angular-material's $mdDialog. As some of you know that the $mdDialog slides in from the element clicked not from top-to-center like bootstrap-modal. Right now it is fading in no sliding, I would like to slide the modal from the element. I did created a fiddle for this purpose. Here is the code var app = angular .module('myApp', [