Adds directive attribute for closing previously opened dialogs

This is related to issue https://github.com/likeastore/ngDialog/issues/14