@novu/js SDK.
This guide uses @novu/js javascript sdk to build the Inbox component in Angular. Novu currently does not support native Angular Inbox component.
Add Novu Inbox to my Angular app
Create a Novu account
Create a Novu account or sign in to access the Novu dashboard.Create an Angular application
Run the following command to create a new Angular app using angular cli:Install @novu/js
The Novu JavaScript SDK gives you access to the Inbox component.Run the following command to install the SDK:Add the Inbox component
Update thesrc/app/app.ts file to add the Inbox component. You’ll need to provide your and :Explore the full
angular-inbox example in the Novu examples repository.applicationIdentifier- In the Novu dashboard, click API Keys, and then locate your unique Application Identifier.subscriberId- This represents a user in your system (typically the user’s ID in your database). For quick start purposes, an auto-generated subscriberId is provided for your Dashboard user.
If you pass a
subscriberId that does not exist yet, Novu will automatically create a new subscriber with that ID.Add the Inbox component to your application
Add a#novuInbox reference to your application in the starting of the src/app/app.html file:src/app/app.html
Run Your Application
Start your development server:Trigger your first notification
In this step, you’ll create a simple workflow to send your first notification via the Inbox component. Follow these steps to set up and trigger a workflow from your Novu dashboard.- Go to your Novu dashboard.
- In the sidebar, click Workflows.
- Click Create Workflow. Enter a name for your workflow (e.g., “Welcome Notification”).
- Click Create Workflow to save it.
- Click the Add Step icon in the workflow editor and then select In-App as the step type.
- In the In-App template editor, enter the following:
- Subject: “Welcome to Novu”
- Body: “Hello, world! ”
- Once you’ve added the subject and body, close the editor.
- Click Trigger.
- Click Test Workflow.
View the notification in your app
Go back to your Angular app, then click the bell icon.You should see the notification you just sent from Novu! 🎉Next steps
Javascript SDK API Reference
Explore JavaScript SDK API reference for more advanced use cases.
Build Workflow
Design and manage advanced notification workflows.
Multi Tenancy
Manage multiple tenants within an organization.