Bug, feature request, or proposal:
Bug
What is the expected behavior?
beforeClose should be called before afterClosed when a dialog closes, even with NoopAnimationsModule being used.
What is the current behavior?
afterClosed is called before beforeClose when NoopAnimationsModule is being used.
Does not happen if using BrowserAnimationsModule
What are the steps to reproduce?
https://stackblitz.com/edit/angular-material2-issue-ehetcr
What is the use-case or motivation for changing an existing behavior?
Incorrect behavior.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
master