Global styles set in app.module.ts will affect the instance. See Global Config setup.
// Inject this service as Dependency Injection in a constructor like example below,
// and evoke the popup simply calling one of its methods.
constructor(private toastEvokeService: ToastEvokeService) {}
// evoke it anywhere, no need to unsubscribe, it has an auto unsubscribe.
// Type SUCCESS
this.toastEvokeService.success('I am title!', 'I am a message!').subscribe();
// Type INFO
this.toastEvokeService.info('I am title!', 'I am a message!').subscribe();
// Type WARNING
this.toastEvokeService.warning('I am title!', 'I am a message!').subscribe();
// Type ERROR
this.toastEvokeService.danger('I am title!', 'I am a message!').subscribe();
• new ToastEvokeService()
▸ customFive(title
, message
, confirmLabel?
, declineLabel?
): Observable
<IToastNotificationPublicResponse
>
Name | Type |
---|---|
title |
string |
message |
string |
confirmLabel? |
string |
declineLabel? |
string |
Observable
<IToastNotificationPublicResponse
>
▸ customFour(title
, message
, confirmLabel?
, declineLabel?
): Observable
<IToastNotificationPublicResponse
>
Name | Type |
---|---|
title |
string |
message |
string |
confirmLabel? |
string |
declineLabel? |
string |
Observable
<IToastNotificationPublicResponse
>
▸ customOne(title
, message
, confirmLabel?
, declineLabel?
): Observable
<IToastNotificationPublicResponse
>
Name | Type |
---|---|
title |
string |
message |
string |
confirmLabel? |
string |
declineLabel? |
string |
Observable
<IToastNotificationPublicResponse
>
▸ customThree(title
, message
, confirmLabel?
, declineLabel?
): Observable
<IToastNotificationPublicResponse
>
Name | Type |
---|---|
title |
string |
message |
string |
confirmLabel? |
string |
declineLabel? |
string |
Observable
<IToastNotificationPublicResponse
>
▸ customTwo(title
, message
, confirmLabel?
, declineLabel?
): Observable
<IToastNotificationPublicResponse
>
Name | Type |
---|---|
title |
string |
message |
string |
confirmLabel? |
string |
declineLabel? |
string |
Observable
<IToastNotificationPublicResponse
>
▸ danger(title
, message
, confirmLabel?
, declineLabel?
): Observable
<IToastNotificationPublicResponse
>
Name | Type |
---|---|
title |
string |
message |
string |
confirmLabel? |
string |
declineLabel? |
string |
Observable
<IToastNotificationPublicResponse
>
▸ info(title
, message
, confirmLabel?
, declineLabel?
): Observable
<IToastNotificationPublicResponse
>
Name | Type |
---|---|
title |
string |
message |
string |
confirmLabel? |
string |
declineLabel? |
string |
Observable
<IToastNotificationPublicResponse
>
▸ success(title
, message
, confirmLabel?
, declineLabel?
): Observable
<IToastNotificationPublicResponse
>
Name | Type |
---|---|
title |
string |
message |
string |
confirmLabel? |
string |
declineLabel? |
string |
Observable
<IToastNotificationPublicResponse
>
▸ warning(title
, message
, confirmLabel?
, declineLabel?
): Observable
<IToastNotificationPublicResponse
>
Name | Type |
---|---|
title |
string |
message |
string |
confirmLabel? |
string |
declineLabel? |
string |
Observable
<IToastNotificationPublicResponse
>