Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@livechat/angular-widget
Advanced tools
Readme
Library to integrate LiveChat Widget with your Angular App.
StackBlitz live example.
npm install --save @livechat/angular-widget
LivechatWidgetModule
in Angular AppModule.import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { LivechatWidgetModule } from '@livechat/angular-widget'
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
LivechatWidgetModule,
],
providers: [],
bootstrap: [
AppComponent,
]
})
export class AppModule { }
<livechat-widget licenseId="10073628"></livechat-widget>
As optional parameters, you can define:
group
chatBetweenGroups
params
visitor
gaVersion
To get more details about usage of the optional paramteres please read our tracking code documentation.
<livechat-widget licenseId="10073628" (onChatLoaded)="onChatLoaded($event)"></livechat-widget>
import { Component } from '@angular/core';
import { LiveChatWidgetApiModel } from '@livechat/angular-widget';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
})
export class AppComponent {
liveChatApi: LiveChatWidgetApiModel
constructor() { }
onChatLoaded(api: LiveChatWidgetApiModel) {
this.liveChatApi = api;
}
}
<livechat-widget #liveChatWidget licenseId="10073628" ></livechat-widget>
import { Component, ViewChild, OnInit, OnDestroy } from '@angular/core';
import { LiveChatWidgetModel } from '@livechat/angular-widget';
import { Subscription } from 'rxjs';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
})
export class AppComponent implements OnInit, OnDestroy {
@ViewChild('liveChatWidget') liveChatWidget: LiveChatWidgetModel;
liveChatWidget$: Subscription = new Subscription();
liveChatApi: LiveChatWidgetApiModel;
constructor() { }
ngOnInit(): void {
this.liveChatWidget$ = this.liveChatWidget.onChatLoaded.subscribe((api: LiveChatWidgetApiModel) => this.liveChatApi = api)
}
ngOnDestroy(): void {
this.liveChatWidget$.unsubscribe();
}
}
FAQs
Angular component to integrate LiveChat with your single-page app
The npm package @livechat/angular-widget receives a total of 450 weekly downloads. As such, @livechat/angular-widget popularity was classified as not popular.
We found that @livechat/angular-widget demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 46 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.