Is there a way to check $mdDialog is Open or not?
My friend suggest me to use $mdDialog(componentId).isOpen()
But don't know, "What is componentId here"
I got an HTML/CSS based solution:
angular.element(document.body).hasClass('md-dialog-is-showing')
It is working as expected for me!
Source: https://github.com/angular/material/issues/5071
Thanks Guys!!