Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

feat(interimElement): add onRemoving event #3503

Closed
wants to merge 1 commit into from
Closed

Conversation

blixt
Copy link

@blixt blixt commented Jun 29, 2015

This event allows you to perform an action when e.g., a dialog starts to
close as opposed to when it has finished closing.

Fixes #3403.

Example use:

viewport.classList.add('blurred');
$mdDialog.show({
  controller: 'MyDialogController',
  clickOutsideToClose: true,
  onRemoving: () => viewport.classList.remove('blurred'), // <---
  template: myTemplate,
  parent: angular.element(document.body),
  targetEvent: event
});

Review on Reviewable

This event allows you to perform an action when e.g., a dialog starts to
close as opposed to when it has finished closing.

Fixes angular#3403.
@amiiit
Copy link

amiiit commented Jun 30, 2015

Thanks for this, I'd love to see this merged !!

@schwerlaut
Copy link

Ah, this is exactly what I've been looking for - great!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

md-dialog: There is no easy way to get notified when dialog is closing (animation started)
4 participants