Use service open
method and subscribe to Observable
your template
. You can also customize notification logic with a component. Inject POLYMORPHEUS_CONTEXT
into the component to get context input data and to output results. It has the following interface: TuiPopover<TuiAlertOptions<I>, O>
, where O
is output data type and I
is input data type.
Use new PolymorpheusComponent(CustomNotificationComponent)
to show notification component with a service:
Use completeWith
method to control notification from itself:
If you use it from lazy loading modules, and want to reach for some local providers, you can pass Injector
into new PolymorpheusComponent
of your alert component.
You can customize default alert options by providing TUI_ALERT_OPTIONS
injection token globally across your app.