Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removeAll not working. #37

Open
MyEidos opened this issue Aug 17, 2017 · 2 comments
Open

removeAll not working. #37

MyEidos opened this issue Aug 17, 2017 · 2 comments

Comments

@MyEidos
Copy link

MyEidos commented Aug 17, 2017

I need to close all opened popups.
this.dialogService.removeAll() not works and fire an error:
Uncaught (in promise): TypeError: Cannot read property 'clear' of undefined

Angular 4.3

@engyash
Copy link

engyash commented Oct 3, 2017

I am getting the same issue.

@ednjv
Copy link

ednjv commented Jan 9, 2019

#23 should fix it, but hasn't been merged

My workaround was to check for the dialogHolderComponent on the DialogService instance

if (this.dialogService['dialogHolderComponent']) { // to avoid compiler errors
  this.dialogService.removeAll();
}

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

No branches or pull requests

3 participants