announcekitapp / announcekit-angular

AnnounceKit widget wrapper for angular 4+
https://announcekit.app
MIT License
3 stars 4 forks source link
announcekit announcement changelog changelog-widget newsfeed widget

The easiest way to use AnnounceKit widgets in your Angular apps (>=10.0.0).

Visit https://announcekit.app to get started with AnnounceKit. CodeSandbox Demo

Documentation


Installation

yarn add announcekit-angular

Usage

app.module.ts

import {AnnouncekitModule} from 'announcekit-angular'

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

app.component.html

<announcekit [user]="user" [data]="data"  widget="https://announcekit.co/widgets/v2/3xdhio">
    What's new
</announcekit>

Props

Common props you may want to specify include:

API

You can use ViewChild to access the widget instance and call control functions

app.component.html

<announcekit #ankRef [user]="user" [data]="data"  widget="https://announcekit.app/widgets/v2/2TrvK8"></announcekit>
<a @click="() => ankRef.open()">What's New</a>