material icon indicating copy to clipboard operation
material copied to clipboard

Fab Speed Dial is always open if no ng-controller="DemoCtrl as demo"

Open alonle opened this issue 10 years ago • 2 comments

If I remove the line ng-controller="DemoCtrl as demo" and use in my site the ui-router state to set the controller, the Fab Speed Dial is always open!

Please see the demo example with hard coded md-open="false": http://codepen.io/anon/pen/pgVoKj

Please help :-(

alonle avatar Jan 27 '16 13:01 alonle

Hello @alonle,

This is because you didn't specify any animation class (like md-fling). So to fix your issue, you should add class="md-fling". (See in codepen here).

devversion avatar Jan 27 '16 14:01 devversion

Thanks @DevVersion Changing ng-class="md-fling" to class="md-fling" is working!

alonle avatar Jan 27 '16 15:01 alonle