Notifizz Angular SDK
The @notifizz/angular package provides an Angular component to embed the Notifizz notification bell and notification center in your Angular application.Installation
Setup
Import the component in your Angular module or standalone component:Template
Add the widget to your template using thenotifizz-bell selector:
authType: 'backendToken' when using a backend-generated token; then userEmail and userId are required.
Options
| Option | Type | Required | Description |
|---|---|---|---|
apiKey | string | Yes | Your Notifizz front API key. |
token | string | Yes | Auth token (Firebase ID token or backend token). |
authType | 'firebase' | 'backendToken' | 'none' | Yes | How the user is authenticated. |
position | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | No | Bell position. |
notificationCenterStyles | { marginTop?: string } | No | Styles for the notification center. |
bellStyles | { marginRight?: string } | No | Styles for the bell. |
userEmail | string | If authType === 'backendToken' | User email. |
userId | string | If authType === 'backendToken' | User ID. |
Backend token authentication
When your backend issues tokens for the Notification Center, setauthType: 'backendToken' and provide the user identity:
Custom icon
You can pass a custom bell icon via content projection. Reference it with#customBellIcon to replace the default bell icon: