Click Outside Modal to Close

Does anyone have any suggestions on how to enable clicking anywhere outside of a modal to close the modal?

Similar to an image gallery modal (ex Facebook) where you can click outside the modal to have it close.

This feature is already built in to ionic.

Do you know how to disable click outside of modal area to close it?


{boolean=} backdropClickToClose Whether to close the modal on clicking the backdrop. Default: true.