Skip to main content

Angular Components

The announcekit-angular module wraps the AnnounceKit widget so you can drop a changelog, roadmap, or feature-request widget into an Angular app as a component, without managing the underlying script tag yourself. It uses the same widget as the plain-JavaScript embed, so the widget type and segmentation rules you configure in the AnnounceKit dashboard apply automatically.

What you can do with the Angular module

  • Render any AnnounceKit widget (Badge, Line, Float or Drawer launcher, or an Embed; opening as a pop-up or sidebar) as an Angular component. In-app Notifications (banners and pop-ups) show on pages that have a widget.
  • Pass user identity and custom properties as component inputs so segmented announcements reach the right users.
  • Update the widget declaratively as your app’s state (user, language, or workspace) changes, the same way you would any other Angular component.
  • Reuse a single widget configuration across multiple routes, for example a badge in the top navigation and a full changelog embed on a dedicated “what’s new” page.

Angular 10 and newer

Install the module:

npm install announcekit-angular

For Angular 4 to 9, install the LTS line instead:

npm install announcekit-angular@v1-lts

Import the module:

import { AnnouncekitModule } from "announcekit-angular";

@NgModule({
  declarations: [AppComponent],
  imports: [AnnouncekitModule],
  bootstrap: [AppComponent]
})
export class AppModule {}

Add the component to a template:

<announcekit widget="https://announcekit.app/widgets/v2/31nbbO" [user]="user" [data]="data">
  What's new
</announcekit>

Inputs: widget (required), user, data, lang, labels, userToken (JWT), boosters, floatWidget, embedWidget, widgetStyle. Outputs: onWidgetOpen, onWidgetClose, onWidgetUnread, onWidgetReady.

Resources:

AngularJS 1.x

For the AngularJS applications please follow the steps and set up module as directive.

FAQ

Does the Angular module support all AnnounceKit widget types?
Yes. The component renders the same widget types available on the web, configured from your AnnounceKit dashboard.

Can I use this with an AngularJS (1.x) app instead?
Yes. A separate announcekit-angularjs directive is available for AngularJS 1.x applications. See the GitHub repo linked above.

Can I target specific users or segments?
Yes. Pass user identity and custom properties to the component, then use AnnounceKit’s audience segmentation in the dashboard to show announcements to specific segments.

Is there an extra cost to using the Angular module?
No. The module is free with any AnnounceKit plan; you only need an AnnounceKit account and a widget configured in your dashboard.

Why teams embed a changelog widget in an Angular app

Most users never visit a separate changelog page, so an in-app widget is what actually gets a release noticed. A badge launcher in the app shell surfaces new posts the moment a user is active, while a sidebar or embed can place a full changelog or roadmap directly inside a settings or “what’s new” route. Because widget content, widget type, and segmentation are all managed from the AnnounceKit dashboard, product and marketing teams can publish and edit announcements without a front-end deploy: the Angular component simply renders whatever is configured for the connected workspace at that moment.