These are chat archives for angular/material

10th
Jun 2016
Patrick Finkbeiner
@pfinkbeiner
Jun 10 2016 14:39
Is it normal that hovering an md-button triggers the ng-click?
Patrick Finkbeiner
@pfinkbeiner
Jun 10 2016 15:05
Nevermind… ;)
whittssg
@whittssg
Jun 10 2016 16:48
Hello, i have been trying to follow the demos in regards to the mdpanel . I can get the mdpanel to open and my controller and everything works but i cant get the panel to close via a button.. The docs say to say to use the MdPanelRef but i cant figure out how to pass that to my panel controller. This is how i am calling the panel from my main controller: panelRef = $mdPanel.create(config);
panelRef.open()
.finally(function () {
panelRef = undefined;
});
i tried passing panelRef via locals but i always get close is not a function
thanks
whittssg
@whittssg
Jun 10 2016 17:00
i also tried adding $mdPanel to my panel controller and then calling $mdPanel.close() but i also get that close is not a function
whittssg
@whittssg
Jun 10 2016 17:11
i can assign panelRef to my rootscope and get it that way but from the looks of the docs there is another way