Use open
method to initiate a dialog, subscribe to a returned Observable
to show it :
If you want to use your own component as a dialog content, use POLYMORPHEUS_CONTEXT
in it. Dialog will provide this token with some useful options: $implicit
with Observer<O>
and completeWith
hook to call next
and complete
in one action.
Use Observer
from $implicit
field of context to close a dialog or get some data
If you use dialog components in lazy loading modules, and want to reach for some local providers, you can pass Injector
into new PolymorpheusComponent
of your dialog component.