Private notificationPrivate tabPrivate Static _instancePrivate Static _loadedPrivate Static _notifications$Private Static _unreadPrivate Static _userPrivate Static isInstance method to access Notifications$ observable
Instance method to access UnreadCount$ observable
Static InstanceStatic Notifications$Observable that emits the full list of user notifications whenever they change
Static UnreadObservable that emits the unread notification count whenever it changes
Static UnreadStatic UnreadStatic UserCreates a user notification in the database and refreshes the UI. Returns the notification object.
Any object, it is converted to a string by JSON.stringify and stored in the database
Creates a message that is not saved to the User Notifications table, but is displayed to the user.
text to display
display styling
Optional hideAfter: numberoption to auto hide after the specified delay in milliseconds
Static RefreshStatic Update
This injectable service is also available as a singleton MJNotificationService.Instance globally within an Angular application/library process space. It is responsible for displaying notifications to the user and also is able to manage the User Notifications entity in the database.