Closes m-e-conroy/angular-dialog-service#37