UI tutorials provides more UI samples related AngularJS, JQuery, JavaScript, Ajax, AjaxMVC and Ext JS to help newbie learning easy and can solve more problem related UI.
Open a dialog over the app's content. Press escape or click outside to close the dialog and send focus back to the triggering button.
Note: The Confirm dialog does not use $mdDialog.clickOutsideToClose(true).
$mdDialog.clickOutsideToClose(true)