- {{ notification.message }}
-
+
diff --git a/projects/angular-notifier/src/lib/models/notifier-notification.model.ts b/projects/angular-notifier/src/lib/models/notifier-notification.model.ts
index b65704cd..8c9b0467 100644
--- a/projects/angular-notifier/src/lib/models/notifier-notification.model.ts
+++ b/projects/angular-notifier/src/lib/models/notifier-notification.model.ts
@@ -17,6 +17,11 @@ export class NotifierNotification {
*/
public type: string;
+ /**
+ * Notification title
+ */
+ title: string;
+
/**
* Notification message
*/
@@ -68,7 +73,12 @@ export interface NotifierNotificationOptions {
type: string;
/**
- * Notificatin message
+ * Notification title
+ */
+ title: string;
+
+ /**
+ * Notification message
*/
message: string;
diff --git a/projects/angular-notifier/src/lib/notifier.module.ts b/projects/angular-notifier/src/lib/notifier.module.ts
index fb05837a..f5b520cd 100644
--- a/projects/angular-notifier/src/lib/notifier.module.ts
+++ b/projects/angular-notifier/src/lib/notifier.module.ts
@@ -8,6 +8,7 @@ import { NotifierAnimationService } from './services/notifier-animation.service'
import { NotifierQueueService } from './services/notifier-queue.service';
import { NotifierService } from './services/notifier.service';
import { NotifierConfigToken, NotifierOptionsToken } from './notifier.tokens';
+import { NzAlertModule } from 'ng-zorro-antd/alert'
/**
* Factory for a notifier configuration with custom options
@@ -46,7 +47,8 @@ export function notifierDefaultConfigFactory(): NotifierConfig {
NotifierContainerComponent
],
imports: [
- CommonModule
+ CommonModule,
+ NzAlertModule
],
providers: [
NotifierAnimationService,
diff --git a/projects/angular-notifier/src/lib/services/notifier.service.ts b/projects/angular-notifier/src/lib/services/notifier.service.ts
index 40b141ad..8bad417b 100644
--- a/projects/angular-notifier/src/lib/services/notifier.service.ts
+++ b/projects/angular-notifier/src/lib/services/notifier.service.ts
@@ -106,8 +106,9 @@ export class NotifierService {
* @param message Message of the notification
* @param [notificationId] Unique ID for the notification (optional)
*/
- public notify( type: string, message: string, notificationId?: string ): void {
+ public notify( type: string, title: string, message: string, notificationId?: string ): void {
let notificationOptions: NotifierNotificationOptions = {
+ title,
message,
type
};
diff --git a/projects/angular-notifier/src/styles.scss b/projects/angular-notifier/src/styles.scss
index 43feed8f..dd3621ea 100644
--- a/projects/angular-notifier/src/styles.scss
+++ b/projects/angular-notifier/src/styles.scss
@@ -11,11 +11,11 @@
@import "./styles/core.scss";
// Themes
-@import "./styles/themes/theme-material.scss";
+//@import "./styles/themes/theme-material.scss";
// Types
-@import "./styles/types/type-default.scss";
-@import "./styles/types/type-error.scss";
-@import "./styles/types/type-info.scss";
-@import "./styles/types/type-success.scss";
-@import "./styles/types/type-warning.scss";
+//@import "./styles/types/type-default.scss";
+//@import "./styles/types/type-error.scss";
+//@import "./styles/types/type-info.scss";
+//@import "./styles/types/type-success.scss";
+//@import "./styles/types/type-warning.scss";